An error occurred while accessing the IIS metadatabase.
Thinking may be due to a problem in order to solve the problem.
1. Open CMD and go to C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727.
2. Enter aspnet_regiis.exe-I
Wait a moment and the registration will 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.
========================================================== ========================================================== ===
Several Phenomena and solutions that ASP. NET cannot be debugged
Symptom 1: Debugging cannot be started on the Web server. An authentication error occurs when you communicate with the Web server.
Or you cannot start debugging on the Web server. Debugging failed because integrated Windows authentication is not enabled.
The reason may be: failed authentication or insufficient permissions.
Solution: on the IIS default website, select the specified application, click "properties"> "Directory Security"> "edit" for identity authentication and access control, and check "Integrated Windows Authentication.
Bytes ---------------------------------------------------------------------------------------------------------------
Symptom 2: Debugging cannot be started on the Web server. The Web server is incorrectly configured. See Help for common configuration errors. Running a webpage outside the debugger may provide further information.
The reason may be that debugging is not enabled for the application on the Web server.
Solution: select the specified application on the default IIS website, and click "enable debugging" in "properties"> "ASP. NET"> "Edit configuration"> "application.
Bytes ---------------------------------------------------------------------------------------------------------------
Symptom 3: open an apsx instance in the development environment and prompt it in the error list,
Error 1 E: \ XXXXX \ yyyyy. ascx: ASP. NET runtime error: "/lm/w3svc/225492951/root/XXXXX" is not a valid IIS application.
The reason may be: failed authentication or insufficient permissions.
Solution: Follow the solution of symptom 1. If not, insert the Visual Studio disc, run the installer, and select "repair/reinstall ".
Related links:
Error: unable to start debugging on the Web Server
Http://msdn2.microsoft.com/zh-cn/library/dwesw3ee (vs.80). aspx
Error: Debugging failed because integrated Windows authentication is not enabled
Http://msdn2.microsoft.com/zh-cn/library/x8a5axew (VS.80). aspx
========================================================== ========================================================== ===
The project with "Class Library output type" cannot be started directly.
In Solution Explorer, right-click solution> Properties> General Properties> Start Project> set single-Start Project to Web Project> OK.