I installed IIS, but I couldn't get into the http://localhost _dos/bat

Source: Internet
Author: User
Tags goto iis
Problem solving:
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 PolicyAgent
@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 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" (
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" (
set/a start=%%y
)
Goto:eof
: Subkey
Set SVC=%~NX1
Reboot 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:d Elkey "Hkcr\cid"
Call:d Elkey "HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\MSDTC"
Call:d Elkey "HKLM\SYSTEM\CONTROLSET001\SERVICES\MSDTC"
Call:d Elkey "HKLM\SYSTEM\CONTROLSET002\SERVICES\MSDTC"
Call:d Elkey "HKLM\SOFTWARE\MICROSOFT\MSDTC"
@echo%windir%\system32\msdtc.exe-install
%windir%\system32\msdtc.exe-install
Endlocal
Goto:eof
:d Elkey
Set key=%1
Call:d elkeyq%key% >nul 2>&1
@echo.
Goto:eof
:d Elkeyq
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 is not found.&goto:eof
Setlocal
Set filename=%1
for/f "tokens=*"%%r in (' Type%filename% ') does (
%%r
)
REG ADD "Hklm\software\microsoft\msdtc\xadll"/F
regsvr32 mtxoci.dll
Endlocal
Run through, look at the log

Perfect solution The IIS server could not load the application '/lm/w3svc/1/root '. Error is ' No registration category phenomenon:
Browse ASP page Tip 500 Internal Error
Event Viewer:
[1]:
The server could not load application '/lm/w3svc/1/root '. The error is ' no registration category '.
For more information about this message, please visit the Microsoft Online Support site: http://www.microsoft.com/contentredirect.asp.
For more information, see the Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
[2]:
The MS DTC transaction manager could not be started.
For more information, see the Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
[3]:
The MS DTC transaction manager failed to start. LogInit returns an error 0x2.
For more information, see the Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
[4]:
The MS DTC log file could not be found. To confirm that all resource managers coordinated by MS DTC do not have an "indeterminate" state of transactions
After that, run Msdtc-resetlog to create the log file.
For more information, see the Help and Support Center in http://go.microsoft.com/fwlink/events.asp.
My operating Environment:
WinXP Pro SP2;
Solution:
[1]:
Check that your DTC service (full name: Distributed Transaction coordinator) can start normally, if normal
Please skip this step, and if an error does not start correctly, run in the Start menu: Msdtc-resetlog to create
Log files. Reboot the machine and check to see if IIS is working properly.
[2]:
Execute the following command under CMD:
CD%windir%\system32\inetsrv
rundll32 Wamreg.dll, CreateIISPackage
regsvr32 asptxn.dll
To restart the machine, my problem to this step can be a perfect solution! Encountered this depressed problem system guide once, IIS reload a number of
Times, Baidu some information, finally solved, hope to 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.