A server error occurs in the "/test" application.
---------------------------
An error occurred while accessing the IIS metadatabase.
Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.
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.
Cause of error: Switch to VS and then install iis
1. Disable VS2008 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.
From liuyun 521