Sunday, 15 September 2013

An error occurred while trying to load some required components.Please ensure that the following prerequisite components are installed in Visual Studio 2012


An issue was reported to me where the developers were facing the following error while trying to create a "App for SharePoint 2013" project in visual studio 2013

Microsoft Web Developer Tools
Microsoft Exchange Web Services

After some troubleshooting, I managed to fix this issue by following these steps:

1. Go to the control panel.
2. Uninstall the following components:
   a).Microsoft Office Developer Tools for Visual Studio 2012 - Preview
   b).Microsoft Exchange Web Services.

Now download the tool web platform installer from this link

Run this tool (in online mode) and this will automatically installed the uninstalled components in the correct way.

That's it the error is gone.

I hope this will help you out.

Rahul Rashu