Solutions to errors in ASP. NET development and Debugging Environments

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.