Export (0) Print
Expand All

User Rights and Visual Studio 

This topic has been updated for Visual Studio 2005 SP1 Update for Windows Vista.

User permission requirements for Visual Studio vary depending on the operating system. For Windows Server 2003 and earlier, members of the Users group can perform most activities in the integrated development environment (IDE). For Windows Vista, Visual Studio must run under administrator permissions to perform tasks correctly.

User Permissions and Windows Vista

Each time that you start Visual Studio 2005 with SP1 Update for Windows Vista on Windows Vista, a message box appears requesting that you run Visual Studio under administrator permissions. By elevating permissions for Visual Studio, you enable Visual Studio to perform all tasks related to features such as building and debugging applications, which might not work correctly under standard user permissions.

To run Visual Studio under administrator permissions

  1. On the Start menu, right-click Microsoft Visual Studio 2005, and then click Run as administrator.

  2. In the User Account Control dialog box, click Continue.

  3. In the Microsoft Visual Studio dialog box, click Continue.

You can also create a shortcut that automatically runs Visual Studio under administrator permissions.

To create a shortcut that automatically runs Visual Studio under administrator permissions

  1. In Windows Vista, open \Program Files\Microsoft Visual Studio 8\Common7\IDE\.

  2. Drag devenv.exe to the desktop.

    NoteNote

    Rename the shortcut to indicate that this shortcut runs Visual Studio under elevated permissions.

  3. Right-click the new shortcut and then click Properties.

  4. Select the Shortcut tab and then click Advanced.

  5. Select Run as administrator and then click OK.

  6. Click Apply and then click OK.

    When you double-click this Visual Studio shortcut, you will automatically start Visual Studio under administrator permissions.

For more information, see Windows Vista and Visual Studioand Visual Studio 2005 Service Pack 1 Update for Windows Vista FAQ.

User Permissions and Windows Server 2003 or Earlier

The following table lists feature areas that require administrator permissions when Visual Studio is installed on supported releases of Windows 2000, Windows XP, and Windows Server 2003. When a member of the Users group encounters one of these areas, an error message is displayed.

Item Description

Setup

You must have administrator rights to install Visual Studio.

Classic COM

  • When you add a classic COM control, such as an .ocx control, to the Toolbox, Visual Studio tries to register the control. You must have administrator rights to register the control.

  • Add-ins that use classic COM must be registered to work in Visual Studio. You must have administrator rights to register the add-in.

COM Interop

When you build managed components, and you have selected Register for COM Interop in the Compile Page, Project Designer (Visual Basic) dialog box, the managed assemblies must be registered. You must have administrator rights to register the assemblies.

For more information, see Using Visual Web Developer as a Non-Administrative User and Running as a Member of the Users Group.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft