CWBSY1040 – Windows logon credentials are unavailable

This short blog shows you how to resolve the error “CWBSY1040 – Windows logon credentials are unavailable” when configuring the ODBC Driver for Client Access ODBC Driver (32 bit).

The dialog pop up when you configure the ODBC Driver for Client Access ODBC Driver (32 bit).

clip_image002

What you need to do is open iSeries Navigator (cwbunnav.exe) then input the credential there.

cwbcy1040

Reference:

https://www.experts-exchange.com/questions/23393329/Windows-Logon-credentials-are-unavailable-error.html

Posted in .Net, Community | Tagged , , , , , | Leave a comment

Export Samsung Android Phone contacts to Nokia Win Phone

This short article is showing you how to transfer Samsung Android Phone contacts to Nokia Win Phone.

1. Export your Samsung contact to csv file using /Kies software provided by Samsung.

(http://www.techulator.com/resources/14283-How-to-save-or-convert-all-spb-contacts-in-csv-file-extension.aspx).

clip_image002

2. To obtain a Contact Template csv file for importing to Windows Phone. (You need to have Outlook installed).

3. Export the Contact to get the template. Using the Import/ Export under File tab.

clip_image004

4. Once you get the csv file then you can delete all your contacts and copy and paste the contacts from the csv you export from Samsung Phone.

5. Go to your Outlook contact and Import contacts. (You need to have a Outlook.com account or previously hotmail.com or msn.com).clip_image006

6. Choose Outlook 2010, 2013, or 2016.

 

clip_image007

7. Select the csv file and click Upload.

clip_image009

 

clip_image011

8. Final Step, go to your Windows Phone login to the same Outlook.com account. Sync the contacts.

You can download the template from https://1drv.ms/u/s!AuZYHSwsevw1boqcHaiVv8fi2yQ to skip the Outlook contact export. I create this template using Outlook 2016.

Posted in .Net, Community, Computers and Internet, Microsoft Office, Office 365 | Tagged , , , , , , | Leave a comment

Call Web Api from Javascript

This short article shows you the missing part of the complete sample of Getting Started with ASP.NET Web API 2.

When I was searching for how to call Web API on Google the below link was returned.

http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

When I look the page I was kind of happy that I can download the Completed Project by clicking the Download Completed Project button.

clip_image002

It brought me to the following link when I click on the Download Completed Project.

https://code.msdn.microsoft.com/ASP-NET-Web-API-Tutorial-8d2588b1

I downloaded the project and everything is good except. You need to continue from the section Calling the Web API with Javascript and jQuery in the tutorial link above.

Create the index.html then paste in the code. The sample is now completed.

<!DOCTYPE html>

<html xmlns=”http://www.w3.org/1999/xhtml”&gt;

<head>

    <title>Product App</title>

</head>

<body>

 

    <div>

        <h2>All Products</h2>

        <ul id=”products” />

    </div>

    <div>

        <h2>Search by ID</h2>

        <input type=”text” id=”prodId” size=”5″ />

        <input type=”button” value=”Search” onclick=”find(); />

        <p id=”product” />

    </div>

 

    <script src=”http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.3.min.js”></script>

    <script>

    var uri = ‘api/products’;

 

    $(document).ready(function () {

      // Send an AJAX request

      $.getJSON(uri)

          .done(function (data) {

            // On success, ‘data’ contains a list of products.

            $.each(data, function (key, item) {

              // Add a list item for the product.

              $(‘<li>’, { text: formatItem(item) }).appendTo($(‘#products’));

            });

          });

    });

 

    function formatItem(item) {

      return item.Name + ‘: $’ + item.Price;

    }

 

    function find() {

      var id = $(‘#prodId’).val();

      $.getJSON(uri + ‘/’ + id)

          .done(function (data) {

            $(‘#product’).text(formatItem(data));

          })

          .fail(function (jqXHR, textStatus, err) {

            $(‘#product’).text(‘Error: ‘ + err);

          });

    }

    </script>

</body>

</html>

Posted in Uncategorized | Tagged , , , , , | Leave a comment

CDPUserSvc Failed to Read Description. Error Code: 15100

This short article shows you how to disable the CDPUserSvc_xxxxxx that is giving problem in the Windows 10 1607. You won’t be able to disable it using Services.msc.

Once you upgraded to Windows 10 Build 1607 most likely you will see the below Services with the description with error “Failed to Read Description. Error Code: 15100“.

image

The last 6 characters in this service is different from PC to PC for example, CDPUserSvc_4b2e3f4 .

If you are trying to disable this service then you will get the The parameter is incorrect error.

image

In order to disable it you need to use Regedit. Go to the following Key and set the Start value to 4 instead of 2.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CDPUserSvc

image

Reference:

https://social.technet.microsoft.com/Forums/windows/en-US/c165a54a-4a69-441c-94a7-b5712b54385d/what-is-the-cdpusersvc-for-?forum=win10itprogeneral

Posted in .Net, Community, Operating System | Tagged , , , , , , | Leave a comment

Create Subfolder in SharePoint Document Library using CSOM

This short article and code snippet shows you how to create a subfolder in SharePoint Document Library using CSOM.

In the code below, this first folder you are going to add is folder name TopFolder.

var newFolder = folders.Add(name);

You the utilize the newFolder object to add the subfolder, the subfolder name in this example is FolderInsideTopFolder.

newFolder.Folders.Add(“FolderInsideTopFolder”);

 

Before that you must call ExecuteQuery or else SharePoint is going to return you context not initialize error.

clientContext.ExecuteQuery();

You can copy and paste the code below to any method. Of course your need to point to your own SharePoint website. 

string siteUrl = https://yourdomain.sharepoint.com/&#8221;;

 

ClientContext clientContext = new ClientContext(siteUrl);

SecureString securePassword = Login.GetPassword();

 

clientContext.Credentials = new SharePointOnlineCredentials(“yourdomain@yourdomain.onmicrosoft.com”, securePassword);

 

Web rootWeb = clientContext.Web;

 

//Get List

var query = clientContext.LoadQuery(rootWeb.Lists.Where(p => p.Title == @”Documents”));

clientContext.ExecuteQuery();

 

List list = query.FirstOrDefault();

string[] namesArray = new string[] { @”TopFolder”};

 

foreach (string name in namesArray)

{

    //Add Folder

    var folders = list.RootFolder.Folders;

    clientContext.Load(folders);

    clientContext.ExecuteQuery();

 

    var newFolder = folders.Add(name);

    newFolder.Update();

    clientContext.ExecuteQuery();

 

    newFolder.Folders.Add(“FolderInsideTopFolder”);

    newFolder.Update();

 

    Console.WriteLine(name);

    Logging.LogOut(name);

}

 

//Execute request

clientContext.ExecuteQuery();

You can also download a single solution from https://1drv.ms/f/s!APSVW40LeSD8gjk.

Posted in .Net, Community, Office 365, sharepoint | Tagged , , , , | Leave a comment

The web template requires that certain feature be installed ReviewPublishingSPD Feature

This short article shows you one of the possible ways to resolve the Office 365 error “The web template requires that certain feature be installed…”

When I was saving the Site as Template from one Office 365 SharePoint site and Activate on another then I received the following message.

The web template requires that certain feature be installed, activated, and licensed. The following problems are blocking application of the template

ReviewPublishingSPD Feature

Site collection

a44d2aa3-affc-4d58-8db4-f4a3af053188

Not activated

clip_image002

I could only do a wild guess because the site that I would like to deploy the template I was not the Site Collection Administrator (that’s suck).

When I disable the Publishing Approval Workflow and Save the Site as Template again and Upload to my destination site, it works.

clip_image004

Posted in .Net, Community, Office 365, sharepoint | Tagged , , , , | Leave a comment

Microsoft SQL Server Management Studio for SQL Server 2016

This short article is to let you know SQL Server Management Studio is no longer part of the SQL Server installation in SQL Server 2016 and it is also not part of the ISO.

When you go to installation page like the one below you realized there is a “Install SQL Server Management Tools”.

clip_image002

Of course, I do have any SQL Server Management Server upon completion of my SQL Server 2016 installation.

 

clip_image004

I would then click the “Install SQL Server Management Tools” in the installation page and thought it will just launch the installation of SQL Server Management Tool. But it didn’t, when it does was, it brought me to an URL to download SSMS-Setup-ENU.exe. The exe is around 800MB. To a developing country, this size is not small.

When you run the SSMS-Setup-ENU.exe, you realized they have a new installation interface.

clip_image006

Finally I got the SQL Server Management Studio.  

clip_image008

The SQL Server 2016 Management Studio is still look pretty much the same as.

clip_image010

Posted in .Net, Community, Servers | Tagged , , , , | Leave a comment