Monday, September 30, 2013

To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges.

When I run my Visual Studio 2012/2013 Preview with SharePoint 2013 App the following error shown
"Microsoft Visual Studio

This task requires the application to have elevated permissions.

Why is using the Administrator or other account necessary?
[^] Hide error information 
 [Restart under different credentials] [Cancel the task and return to Microsoft Visual Studio]

Unable to open the Web site 'http://siteapp:420'. Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine."

When I skipped this message and tried to deploy the solution, I following error message was thrown.

"Error 1 To interact with SharePoint projects in Visual Studio, your system user account must have administrator privileges."

To avoid the above problem, please login to your system or development VM using administrator privileged user not with real Administrator or System  Account or localadmin user IDs.

After you logged in with administrator privileged user, hold shift and right click on Visual Studio 2012 and run with other account. Problem Solved.

Hope this helps.

1 comment:

Unknown said...

Visual Studio 2013 still throws the same exception of Insufficient Privileges. Please help

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...