Failed to access the IIS metabase
Similarly, giving IIS operational permissions to new users of the operating system can also be handled using this command
Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.
Exception Details: System.Web.Hosting.HostingEnvironmentException: failed to access the IIS metabase .
The process account that is used to run ASP.net must have read access to the IIS metabase (such as IIS://servername/w3svc). For information about how to modify metabase permissions , see http://support.microsoft.com/?kbid=267904.
Common solutions:
The operation method is as follows:
1. Start--> run--> input cmd, run
After the 2.DOS window is open, enter the above folder in the DOS window
3. Input Aspnet_regiis.exe-i-enable
But this did not solve my problem, Google many times after the discovery is indeed a matter of privilege caused
Workaround:
CMD switch to the system directory, the following system installed in C:\Windows as an example
Start running cmd
CD to Directory
C:\WIDOWS\Microsoft.NET\Framework\v2.0.50727
Input
Aspnet_regiis-ga ASPNET
Similarly, giving IIS operational permissions to new users of the operating system can also be handled using this command