Thursday 17 November 2011

Visual Studio 2010 - Run with administrator privileges

 

Visual Studio needs to be run with Administrator privileges in order to interact with SharePoint.  i.e to deploy features.

If you aren’t running with administrator privileges you get the following error message:

ElevatedPrivalages

With the following message in the output console:

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

In order to avoid this you can get Visual Studio to open up by default with administrator privileges:

Step 1

Right click on the Visual Studio shortcut icon and choose properties

STEP 2

Click on Advanced

Visual Studio Properties

STEP 3

Select Run as administrator then click OK

Advanced Properties

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi, i tried but error return. I used vs 2012, sp 2010. window server 2008 R2.
    I use domain account and i add my user to Administrator Group but not run!

    ReplyDelete
  3. Add the user to the "Enterprise Admins" in Active Directory - that's what worked for me. Adding the user to just the Domain Admins group wasn't enough.

    ReplyDelete