昨天安裝了Server-U 不知道預設了什麼,VS2008的Web項目就不能夠運行了。
環境:XP SP3、VS2008 SP1、建立Web應用程式、基於local IIS.
報告如此下錯誤:
Q: 無法web伺服器上啟動調試,無法串連到web伺服器。請驗證web伺服器正在運行,並且防止防火牆沒有阻止傳入的http請求......
A: 可能預設網站被關閉,需要啟動網站,並重新啟動IIS即可。
如果還有錯誤,類似如下錯誤:
Q:無法web伺服器上啟動調試,伺服器不支援對asp.net或者atl server 應用程式的進行調試...
A:重新註冊IIS: 執行 aspnet_regIIS 即可。
Q:無法在 Web 服務器上啟動調試。此項目在使用一個被配置為使用特定 IP 位址的網站。請在項目 URL 中指定電腦名稱。
A:在預設網站的IP地址:修改為“全部未分配”。
Q: By default, it is located in c:\inetpub\wwwroot. However, if you want to change it, then you go into IIS. IIS is the Internet Information Services administration tool. It depends what version you are running as to where it is located, but most commonly, it is found in the Administration Tools area.
A: Open IIS, Expand your "Local Computer" node in the tree, and then right click on "Default Web Site" and click on "Properties".
In the Properties dialog, click on the "Home Directory" tab. There you will see "Local Path" with a "Browse" button next to it. That is where you can change it from.
Q: 產生編譯錯誤:“/LM/W3SVC/1/ROOT/XXX/IRRCUpdateServer”不是一個有效 IIS 應用程式。
A: 在IIS中建立應用程式,重新在Solution引用該Web Project。
Q:401授權錯誤,在IIS可以訪問,在IE中無法訪問。
A:添加Web Share的匿名授權帳號:IUSR
態度決定一切,技術改變生活
作者:winzheng
出處:http://cnblogs.com/winzheng
本文為原創作品,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連結,否則保留追究法律責任的權利。