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.