Reference from shenloud: http://www.cnblogs.com/Shenease/archive/2007/10/16/643328.html
Running Environment: Windows XP Sp2
Symptom:
[1] "HTTP 500-internal server error" occurs when you browse the host's. net script"
[2] view computer system events and find that a warning is displayed every time you browse the. net script:
Event Type: Warning
Event Source: W3SVC
Event Type: None
Event ID: 36
Date: 2006-9-4
Event: 15:48:51
User: N/
COMPUTER: FITMOS
Description:
The server cannot load the application '/LM/w3svc '. The error is 'the specified metadata cannot be found. '.
View the information on the network and find that it is related to the DTS service.
Enter the command "services. msc ", looking for the DTC service (full name: Distributed Transaction Coordinator), found that the Service list does not have this service, go to c: \ windows \ system32 to find the MSDTC directory, in addition, wamreg.dlland asptxn.dllare available in c: \ windows \ system32 \ inetsrv, and msdtc.exe is also available in system32. it seems that the msdtc Service is not installed.
Run the command to install msdtc-install
Run services. msc and find that the dtc service is already in the list. set it to "automatic" and start it.
Make sure that the msdtc Service has been started properly in the Event Viewer. [This step is critical. If not, restart your computer.]
The following command can be run only after msdtc is started. Otherwise, the command will fail.
Cd % windir % \ system32 \ inetsrv
Rundll32 wamreg. dll, CreateIISPackage
Regsvr32 asptxn. dll
(Note that CreateIISPackage is case sensitive .)
At this time, refresh the ASPX page to be run. That's great. It can be displayed normally !!
Http://www.cnblogs.com/waffie/archive/2009/08/21/1551476.html