I'm using VS 2013 Pro and having big problems. Opening an exsiting Web application and creating new web applications throws errors, rendering VS completely useless.
I will try to describe the problems, details about what might be causing the problem and what I've tried to fix the problem.
The problems
1) When I try to open an existing web application, I get an error saying:
Creation of the virtual directory http://localhost:1234/
failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine.
2) When I try to create a new web application, I get an error saying:
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
Details
During the weekend the internal IT department, made a change to the network. The "My Documents" folder i stored on a network drive. The IT department changed the path of the "My Documents" folder. Visual Studio has some setting files which are stored in "My Documents" and it might not have updated the path to the folder, causing the error.
What I have tried
Nothing has fixed the problem. Please heeeeelp!!!
Solution 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
.
Solution 2:
Edit the web application's project file with a text editor and change this line from True to False:
<UseIIS>True</UseIIS>
Solution 3:
Grant IIS AppPool identity permissions to the %systemroot%\inetsrv\config
Solution 4:
run in command prompt:
aspnet_regiis -i
or aspnet_regiis.exe -ga
User contributions licensed under CC BY-SA 3.0