I have a Windows Server 2012R2 version with IIS installed. I'm trying to migrate my solution from Visual Studio 2010 to VS 2015 SP3 Entreprise. The problem that my WebForms project get load failed error. When I try to right-click and reload the project, I get the following error message:
Creation of the virtual directory http://localhost:57011/ failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine..
(Cannot put image)
Of course I have already searched for a solution and found the following pages, but it does not help:
Error - Unable to access the IIS metabase
(and others)
They say to check :
- Running Visual Studio as Administrator
- Running aspnet_regiis.exe -ga MyUserName
- Running aspnet_regiis.exe -I
- Checked security here: %systemroot%\System32\inetsrv\config
I have already tried 1 and 4, for 2 and 3 I don't understand what to do . I have execute it as following
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -ga net1\mbasp
Start granting net1\mbasp access to the IIS metabase and other directories used by ASP.NET.
Finished granting net1\mbasp access to the IIS metabase and other directories used by ASP.NET.
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i
Finished installing ASP.NET (2.0.50727).
I don't think that the error "Unable to access the IIS metabase" is about IIS, but maybe about IIS Express. Do you know where there is a configuration of IIS Express in VS2015 or do you have another idea?