I encountered this kind of error when using pb11.5 for web publishing. I used this repair tool to fix it, which is pretty good!
Source code:
@echo off
echo *echo *
echo ****************************************************
echo * *
echo * IIS Server Application Error error automatic repair batch processing *
echo * Author: hayden *
echo * *
echo ****************************************************
echo *
echo *
set /p isok0=Start IIS repair? (y/n)
if %isok0%==y goto begin
goto forend
:begin
set userIWAM=IWAM_%COMPUTERNAME%
set userIUSR=IUSR_%COMPUTERNAME%
:checkIWAM
net user %userIWAM%
if %errorlevel%==0 goto checkIUSR
goto netuserIWAM
:checkIUSR
net user %userIUSR%
if %errorlevel%==0 goto edituser
goto netuserIUSR
:netuserIWAM
net user
set /p tiwam=Please enter the correct "Start IIS process account" name (that is, the account name starting with IWAM_)?
set userIWAM=%ans%
goto checkIWAM
:netuserIUSR
net user
set /p tiusr=Please enter the correct "Internet Guest Account" name (that is, the account name starting with IUSR_)?
set userIUSR=%tiusr%
goto checkIUSR
:edituser
echo resets the "Start IIS Process Account" password to 123
net user %userIWAM% 123
echo resets the "Internet Guest Account" password to 123
net user %userIUSR% 123
echo password synchronization
cscript.exe %HOMEDRIVE%InetpubAdminscriptsadsutil.vbs set w3svc/wamuserpass 123
cscript.exe %HOMEDRIVE%InetpubAdminscriptsadsutil.vbs set w3svc/anonymoususerpass 123
echo *
echo *
set /p isok1=Please test whether IIS is normal? (y/n)
if %isok1%==y goto forend
cscript.exe %HOMEDRIVE%InetpubAdminscriptssynciwam.vbs -v
iisreset
echo *
echo *
set /p isok2=Please test whether IIS is normal? (y/n)
if %isok2%==y goto forend
echo clears information related to the MSDTC service registry
reg delete HKLMSYSTEMCurrentControlSetServicesMSDTC /f
reg delete HKLMSOFTWAREMicrosoftMSDTC /f
reg delete HKCRCID /f
echo Stop and reinstall the MSDTC service
net stop msdtc
msdtc-uninstall
msdtc-install
echo resets the "Start IIS Process Account" and "Internet Guest Account" passwords
net user %userIWAM% 123
net user %userIUSR% 123
echo synchronizes the password of IWAM_MYSERVER in IIS metabase
%HOMEDRIVE%InetpubAdminscriptsadsutil.vbs set w3svc/wamuserpass "123"
echo IWAM_MYSERVER password used to synchronize COM+ applications
cscript.exe %HOMEDRIVE%InetpubAdminscriptssynciwam.vbs -v
echo *
echo *
set /p isok3=Please test whether IIS is normal? (y/n)
if %isok3%==y goto forend
echo re-register related components
rundll32 %windir%system32inetsrvwamreg.dll, CreateIISPackage
regsvr32 %windir%system32inetsrvasptxn.dll /s
echo *
echo *
set /p isok4=Please test whether IIS is normal? (y/n)
if %isok4%==y goto forend
echo *
echo *
echo If IIS is still not normal, I really can't solve it. Please ask someone else!
:forend
echo *
echo *
@echo The batch processing is completed, please press any key to exit?
@echo off
pause


















Useful
Useful
Useful