Saturday, May 30, 2015

SharePoint 2013 Samples using Visual Studio 2012

Environment: Visual Studio Professional 2012, SharePoint Server 2013 Enterprise
SharePoint 2013 Code samples are available in Visual Studio 2012. There are lot of online sample available and can be retrieved from Visual Studio tool. Sample codes includes JavaScript, Visual Basic, Visual C#, Visual C++, Visual F# etc.
  1. Open Visual Studio 2012 > Help > Samples
SharePoint 2013 Code samples
  1. Search for SharePoint related samples online
SharePoint related online samples
  1. On clicking Ok button after providing the necessary information in the New Project dialog, the online sample will be downloaded to your Visual Studio.
  2. Navigate to the Installed section and select the downloaded sample to create the project
SharePoint related online samples


  1. Build and deploy your app to SharePoint.

Build and deploy app to SharePoint

Thursday, May 7, 2015

SharePoint products configuration wizard failed

Environment: SharePoint 2013 Foundation

Requirement: Uninstall existing SharePoint 2013 Enterprise and Install SharePoint 2013 Foundation

Issue: After uninstalling the existing SP2013 and successful 2013 Foundation installation, the installation failed during running SharePoint products configuration wizard. It failed at the step 8 of 9 throwing following error message.
Configuration failed.
One or more configuration settings failed. Completed configuration settings will not be rolled back. Resolve the problem and run this configuration wizard again. The following contains detailed information about the failure.
Failed to upgrade SharePoint Products
An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: Failed to upgrade SharePoint Products

SharePoint products configuration wizard failed
Resolution:

As it turns out to be insufficient SQL Server database permissions. Also noticed that the SharePoint timer job was running with Network Credentials account.

Following are the steps involved to resolve this issue.
  1. In Central Administration Web site, click Security > Configure Service Accounts.
  2. In Credential Management section, select the Web application pool for your Web application.
  3. In the Select an account for this component section, select the service account that you want to associate with this Web application pool, or click Register new managed account to associate a new service account with this application pool.
  4. Click OK
  5. Update the SharePoint timer job service to run on the same service account.