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.

Comments

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

Popular posts from this blog

ASP.NET website "Cannot read configuration file due to insufficient permissions" in IIS 7 and Windows Server 2008

Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.

None of the selected features can be installed or upgraded. Setup cannot proceed since no