Visual Studio 2013. You do not have sufficient privilege to access IIS web sites on your machine

前端 未结 12 1463
花落未央
花落未央 2020-12-12 22:40

I just installed VS2013 and turned on IIS 7 on my Windows 7 Ultimate x64 machine. When trying to open a solution I get:

Creation of the virtual direct

相关标签:
12条回答
  • 2020-12-12 23:04

    On Windows 10 running Visual Studio 2015 Community Edition, here are the steps I followed:

    1. Control Panel -> Programs and Features -> Turn Windows Features on or off... inside that, we had to select Internet Information Services -> Web Management Tools -> IIS 6 Management Compatibility -> IIS Metabse and IIS 6 configuration compatibility.

    2. select "Troubleshoot Program" check "The program requires additional permissions" click "Next", click "Test the program..." wait for the program to launch click "Next" select "Yes, save these settings for this program" click "Close"

    3. Go to C:\Windows\System32\inetsrv. Click config folder. You will get a popup - "You don't have access to this folder - Click continue to permanently get access to this folder". Perform same for Export folder which is inside config folder.

    Then it finally got past the permission issue.

    0 讨论(0)
  • 2020-12-12 23:07

    Try running VS as admin. If it does not work check if you have IIS metabase folder permission. Open up windows explorer (Win + e). Type the following to address bar:

    win 7, win 8.1, win 10 %systemroot%\System32\inetsrv\config

    win 8 professional %systemroot%\inetsrv\config

    Allow access if needed. Go into \Export\ folder and allow access again.

    Source here

    0 讨论(0)
  • 2020-12-12 23:07

    Just delete .vs folder in Project (It may be hidden) and again open project in visual studio, it will be work.

    0 讨论(0)
  • 2020-12-12 23:08

    In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility".

    select "Troubleshoot Program"
    check "The program requires additional permissions"
    click "Next", click "Test the program..."
    wait for the program to launch
    click "Next"
    select "Yes, save these settings for this program"
    click "Close"

    0 讨论(0)
  • 2020-12-12 23:09

    I encountered similar problem. I had not installed IIS yet. 1. I installed IIS. 2. I used aspnet_regiis tool (with -i) to enable Asp.Net on IIS. 3. Tried to load existing web app project. (FAILED with same error) 4. I reset IIS service. 5. I opened VS2013 as administrator and loaded the existing web app project (Succeeded) 6. The virtual directory created on IIS successfully.

    I think the key is the Aspnet_regiis IIS reset and IIS service reset steps.

    0 讨论(0)
  • 2020-12-12 23:10

    Go to C:\Windows\System32\inetsrv. Click config folder. You will get a popup - "You don't have access to this folder - Click continue to permanently get access to this folder". Perform same for Export folder which is inside config folder. You should be able to open the solution and the web application project will be deployed on IIS.

    0 讨论(0)
提交回复
热议问题