Exception details: system. Web. Hosting. hostingenvironmentexception: An error occurred while accessing the IIS metabase.
The process account used to run ASP. NET must have read access to the IIS metabase (for example, IIS: // servername/W3SVC. For information about how to modify metadatabase permissions, see http://support.microsoft.com /? Kbid = 267904.
This is because the installation sequence is incorrect because vs2005 is installed before IIS is installed. Install IIs before vs2005 or related components,
The solution is as follows:
Solution:
1. Open CMD and go to C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727.
2. Enter aspnet_regiis.exe-I
Aspnet_regiis-ga <windowsuseraccount>
3. Disable vs2005 first.
4. Open c: \ windows \ Microsoft. NET \ work \ v2.0.50727 \ temporary ASP. NET files, find the directory of the program you just debugged, and delete it.
5. Disable the IIS server and restart it once.
6. Use IE to browse your program and solve the problem.
The "failed to create mutex" problem also occurs.
Solution:
1. Disable vs2005 first.
2. Open c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ temporary ASP. NET files, find the directory of the program you just debugged, and delete it.
3. Disable the IIS server and restart it once.
4. Use IE to browse your program and solve the problem.