Two steps to solve internal server error: 500

Source: Internet
Author: User

Three-step solution

1. Run: regsvr32 % WINDIR %/system32/VBScript. dll (in fact, this step can also be saved. Make sure to execute it if necessary)
2. Run: MSDTC-resetlog
3. reinstall IIS

 

Error 404 your path is incorrect ~ Something not found

Error 500 is already connected to the server
From: http://www.cnblogs.com/wf225/archive/2008/04/30/1178058.html

 

During this period, I re-installed IIS once, but the problem cannot be solved. There are only two steps to solve this problem.

======================================

Google knows about the event viewer.

This stuff is good enough to record the program running events.

 

Then I went in and saw the error and warning.

Exception information:
Exception type: hostingenvironmentexception
Exception message: An error occurred while accessing the IIS metadatabase.

Then I google "failed to access the IIS metadatabase"

It may have been caused by my IIS reinstallation.

Step 1: Register aspnet_regiis (with IIS reinstalled)

1. Click Start> Run ".

2. In the "run" column, enter

"C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I" (without quotation marks), and then click "OK.

3. The displayed cmd window displays "start to install ASP. net xxx" and other content. Wait until the window is closed automatically.

The problem persists. I will restart the machine and try again.

The problem persists after the host is restarted. Google will find the answer here.

Step 2: grant permissions to the ASPNET account

C: \ Documents ents and Settings \ Administrator> C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.
50727 \ aspnet_regiis-ga ASPnet
Grant permissions to ASP. NET to access other directories used by the IIS metadatabase and ASP. NET.
ASPnet has the relevant permissions to access other directories used by the IIS metadatabase and ASP. NET.

 

Summary:Under normal circumstances, there is IIS first and then vs. If you reinstall IIS in the middle, you need to register the aspnet_regiis (start -- run -- "c: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ aspnet_regiis.exe-I

), After registering the waist ASPnet, grant the permission (Start -- run --C: \ Documents and Settings \ Administrator> C: \ WINDOWS \ microsoft. net \ framework \ v2.0.50727 \ aspnet_regiis-ga ASPnet)

Event Viewer: This is a good stuff. You need to make good use of it.

As far as I know, this is what it looks like. It only takes two steps to summarize. If you can't do it, you can go to the above links.

 

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.