問題描述:VS2003不能創建webapplication,IE中輸入http://localhost/無相關網頁出來
解決方法:
1.刪除IIS
2.刪除inetpub文件夾
3.保持"Distributed Transaction Coordinator"啟動狀態
4.重新安裝IIS
5.regsvr32 SystemDir\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
6.運行 SystemDir\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -a
7.成功建立webapplication
分析這一次失敗的原因,是Distributed Transaction Coordinator不能啟動,如果碰到不能啟動時,請將以下代碼保存為.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
參考網頁:http://codebetter.com/blogs/peter.van.ooijen/archive/2004/09/08/Fixing-a-broken-asp.net-installation.-_2800_The-Web-server-reported-the-following-error-when-attempting-to-create-or-open-the-Web-project-located-at-the-following_2E002E002E002E002900_--revisited.aspx
浙公网安备 33010602011771号