sharepoint 2013 and visual studio 2012 problem

Prerequisites for creating SharePoint 2013 projects using Visual Studio 2012

Rate This

Unlike Visual Studio 2010, you need to install an extra component to be able to create SharePoint 2013 projects in Visual Studio 2012. Since, I have seen some customers having trouble with that, I thought it would be helpful to write few words about it.

If you have installed Visual Studio 2012 and would like to be able to create SharePoint 2013 projects with it make sure you do the following:

1- Install the “Microsoft Web Developer Tools” which is a feature that ships with Visual Studio 2012

2- Install the “Microsoft Office Developer Tools for Visual Studio 2012” which can be downloaded from here. The direct download link is here.

 

If you try to create a SharePoint 2013 project and you get the following error message:

 

Error

An error occurred while trying to load some required components. Please ensure that the following prerequisites components are installed:

Microsoft Web Developer Tools

Microsoft Exchange Web Service.”

Solution

  1. Make sure that you have the “Microsoft Web Developer tools” feature added through the Visual studio 2012 installer.
  2. Make sure you have the “Microsoft Exchange Web Services API” *version 8.2.5 32bit* installed from command line with the following switch: addlocal=”ExchangeWebServicesApi_Feature,ExchangeWebServicesApi_Gac” So it will look like this:

EwsManagedApi32.msi addlocal=”ExchangeWebServicesApi_Feature,ExchangeWebServicesApi_Gac”

if you haven’t done so, uninstall it and reinstall it again from command line with the outlined switch listed above.

The Microsoft Exchange Web Services API can be downloaded from here.

** Note this article is updated to add the command line that will register the EWSManagedApi32 component. Thanks to Tom Van Gaever.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: