Visual studio 2010 Required to run as administrator to create a website

I am using Visual Studio 2010 and have a solution containing a website project. In XP Pro evrything is built perfectly. I upgraded to a new machine running Windows 7 Ultimate, and now that I'm going to create a site, I get the following error message:

------ Build started: Project: C: ... \ WebSite \, Configuration: Debugging Any processor ------ Web site check: Build (web): Failed to match path '/'

If I select the option "Run as administrator" to start Visual Studio, then the site will be built perfectly, and I have no errors at all.

I would prefer not to constantly run Visual Studio as an administrator. Any suggestions?

+5
source share
2 answers

You can correctly use Visual Studiohow Administrator.

Just follow these steps:

   1) Find the Visual Studio Executable.

    Visual Studio 2010 C# Express:
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\VCSExpress.exe

    Visual Studio 2010 Professional:
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe

    2) Right-click on the Visual Studio Executable and left-click Properties

    3) On the new window, click the Compatibility tab

    4) Tick the option "Run this program as an administrator"

    5) Click OK to save the settings

Enjoy Visual Studiowithout having to "run as administrator" every time .;)

+3
source

In this case, you have two options.

  • You can configure VS to run as administrator automatically
  • You can change your web project so that it is not hosted in IIS, but rather hosted on a Visual Studio server. This is done through the "Project Properties" tab "Web", bottom to bottom.

Personally, I run as Admin all the time.

+3
source

All Articles