Server Application Error-Http 500 Error Solution

Source: Internet
Author: User

An error occurred when creating an asp.net website. An http 500 internal server error occurred when accessing the aspx webpage. After some twists and turns, I finally completed the problem. The description is as follows:

1. internet Options-advanced, remove the hooks before "show friendly http Error messages"

2. When accessing the aspx page again, the Server Application Error is displayed.

3. view system logs

Event Type: Warning
Event Source: W3SVC
Event ID: 36
Description: The server cannot load the application '/LM/w3svc/1/ROOT/website '. Error: 'No registered category

4. solution:
[1]: Check whether your DTC service (full name: Distributed Transaction Coordinator) can be started normally. If it is normal, skip this step. If an error occurs, it cannot be started normally, run msdtc-resetlog in the Start menu to create a log file. Restart the machine and check whether IIS can be used normally. If not, continue.

[2]: run the following command in CMD:
Cd % windir % \ system32 \ inetsrv
Rundll32 wamreg. dll, CreateIISPackage [Note that CreateIISPackage is case sensitive. If I write S as s, a warning is displayed for the loss of the CreateIIsPackage.]
Regsvr32 asptxn. dll

5. Continue to access the aspx webpage. The error "failed to access the IIS metadatabase" appears.
Solution: open CMD and enter C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727.
Enter aspnet_regiis.exe-I
Wait a moment and the registration will solve the problem.

--------------------------------------------------------------------------------

Reference page: http://sonic.popwind.com/article.asp? Id = 237
Http://www.wansky.cn/blog/article.asp? Id = 105
Http://blog.csdn.net/iknowle/archive/2007/05/28/1628836.aspx

 

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.