I have installed IIS, but I cannot access http: // localhost.

Source: Internet
Author: User

Solution:
Setp 1
Stop Related Services
MSDTC_1.bat
@ Echo off
If {% 1 }={}@ echo Syntax: MSDTC1 Filename & goto: EOF
Setlocal ENABLEDELAYEDEXPANSION
Set filename = % 1
If exist % filename % del/q % filename %
(
@ Echo Alerter
@ Echo EventSystem
@ Echo Browser
@ Echo TrkWks
@ Echo Dnscache
@ Echo Eventlog
@ Echo yyagent
@ Echo dmserver
@ Echo Messenger
@ Echo Netlogon
@ Echo NtLmSsp
@ Echo Netman
@ Echo PlugPlay
@ Echo RpcSs
@ Echo RpcLocator
@ Echo NtmsSvc
@ Echo SamSs
@ Echo lanmanserver
@ Echo SENS
@ Echo Schedule
@ Echo LmHosts
@ Echo winmgmt
@ Echo Wmi
@ Echo W32Time
@ Echo lanmanworkstation
)> "% TEMP % \ MSDTC1.TMP"
Call: stopdtc> nul 2> & 1
For/f "Tokens = *" % L in ('reg query HKLM \ System \ CurrentControlSet \ Services ^ | FINDSTR/I/B
/L/C: "HKEY_LOCAL_MACHINE" ') do (
Set line = % L
Set key = HKLM! LINE :~ 18!
Call: subkey "! Key! "
Call: testsvc
)
Endlocal
Goto: EOF
: Stopdtc
SC stop msdtc
Goto: EOF
: Testsvc
For/f "Tokens = *" % c in ('@ echo! Svc! ^ | Findstr/I/B/E/L/G: "% TEMP % \ MSDTC1.TMP" ') do goto
: EOF
Set/a start = 3
Set/a type = 0
Call: getstart> nul 2> & 1
Call: gettype> nul 2> & 1
If % type % LSS 16 goto: EOF
If % start % NEQ 2 goto: EOF
SC config! Svc! Start = demand
@ Echo SC config! Svc! Start = auto> % filename %
Goto: EOF
: Gettype
For/f "Tokens = 2,3" % x in ('reg query "HKLM \ System \ CurrentControlSet \ Services \! Svc! "/V
Type ^ | FIND "REG_DWORD" ') do (
Set/a type = % y
)
Goto: EOF
: Getstart
For/f "Tokens = 2,3" % x in ('reg query "HKLM \ System \ CurrentControlSet \ Services \! Svc! "/V
Start ^ | FIND "REG_DWORD" ') do (
Set/a start = % y
)
Goto: EOF
: Subkey
Set svc = % ~ Nx1
Restart the machine
Step 2
Delete the associated registry key and reinstall the msdtc component.
MSDTC_2.bat
@ Echo off
Setlocal
@ Echo % WINDIR % \ System32 \ msdtc.exe-uninstall
% WINDIR % \ System32 \ msdtc.exe-uninstall
Call: delkey "HKCR \ CID"
Call: delkey "HKLM \ SYSTEM \ CurrentControlSet \ Services \ MSDTC"
Call: delkey "HKLM \ SYSTEM \ ControlSet001 \ Services \ MSDTC"
Call: delkey "HKLM \ SYSTEM \ ControlSet002 \ Services \ MSDTC"
Call: delkey "HKLM \ Software \ Microsoft \ MSDTC"
@ Echo % WINDIR % \ System32 \ msdtc.exe-install
% WINDIR % \ System32 \ msdtc.exe-install
Endlocal
Goto: EOF
: Delkey
Set key = % 1
Call: delkeyq % key %> nul 2> & 1
@ Echo.
Goto: EOF
: Delkeyq
Reg delete % key %/F
SETP 3
Restlog
MSDTC_3.bat
@ Echo off
If {% 1 }={}@ echo Syntax: MSDTC3 Filename & goto: EOF
If not exist % 1 Syntax: MSDTC3 Filename-% 1 was NOT found. & goto: EOF
Setlocal
Set filename = % 1
For/f "Tokens = *" % r in ('Type % filename % ') do (
% R
)
Reg add "HKLM \ SOFTWARE \ Microsoft \ MSDTC \ XADLL"/F
Regsvr32 mtxoci. dll
Endlocal
After running, check the log.

The perfect solution is that IIS servers cannot load applications '/LM/W3SVC/1/root '. The error is 'no registered category:
When you browse the ASP page, the system prompts 500 internal error.
In Event Viewer:
[1]:
The server cannot load the application '/LM/W3SVC/1/root '. The error is "no registered category '.
For more information about this message, visit the Microsoft online support site: http://www.microsoft.com/contentredirect.asp.
For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
[2]:
Unable to start ms dtc Transaction Manager.
For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
[3]:
Ms dtc Transaction Manager failed to start. LogInit returns error 0x2.
For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
[4]:
Ms dtc Log File not found. Transactions that are not in an "uncertain" status when you confirm that all resource managers coordinated by ms dtc do not
Run msdtc-resetlog to create a log file.
For more information, see Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
My runtime environment:
WinXP Pro SP2;
Solution:
[1]:
Check whether your DTC service (full name: Distributed Transaction Coordinator) can be started normally.
Skip this step. If an error occurs and the task cannot be started properly, run msdtc-resetlog in the Start menu to create
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
Regsvr32 asptxn. dll
After restarting the machine, my problem can be solved perfectly in this step! When this depressing problem occurs, the system directs it once and IIS reinstalls several
Times, BAIDU has some information and finally solved it. I hope it will help you.

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.