Monday, April 25, 2011

Run as Administrator in Visual Studio 2010

The SharePoint projects in Visual Studio require administrator privileges to interact with SharePoint.
First approach:
To launch Visual Studio as an administrator, locate the Microsoft Visual Studio 2010 shortcut in the Start Menu under All Programs > Microsoft Visual Studio 2010. Right click on the Microsoft Visual Studio 2010 shortcut. You can choose Run as administrator from the context menu to run Visual Studio as an administrator.


2nd approach:
Right click on the Microsoft Visual Studio 2010 shortcut and choose Properties. Click the Compatibility tab.Then check the Run this program as an administrator check box and press OK.
If you have installed Visual Studio in Windows Server 2008 then Simply right click will not work. So go for Shift+Right Click and it will show you the Option for Run as Administrator. Thanks to K Kathiravan for this useful modification for Windows Server 2008.

Now use the modified Microsoft Visual Studio 2010 shortcut or the Run as administrator command in the context menu to launch Visual Studio with administrator privileges. You can check also some SharePoint 2010 articles here.

No comments:

Post a Comment