關于Server Application Unavailable錯誤的處理經驗分享
本文跟大家提供分享的是關于作者遇到IIS的一個莫名錯誤Server Application Unavailable 錯誤的處理經驗分享,希望能對大家有所幫助。
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
調試時,因為一個SQL語句有問題,修改錯誤后,結果IIS來這個錯誤。。。。。
當然,我試著去Refresh,可是這幾乎是徒勞的。沒辦法,只好重新啟動IIS,結果還是這樣!
重新啟動Computer后,還是這個錯誤。這才是郁悶。
查看日志后,發現最后一個日志有很多的空格(應該是,因為日志是文本的)。像是死循環寫進去的。但重新啟動電腦后應該可以恢復呀,刪除日志,再來運行,結果還是一樣!
后來在同事的幫助下,發現Services里的一個服務停了。重新打開這個服務ASP.net state Service后,IIS就正常了。
不明白為什么程序出現錯誤后,把這個服務給停了,重新啟動IIS及電腦都不加載這個服務了,郁悶。。。必須手動啟動。
[更正:Wednesday, March 22, 2006 3:41:18 PM]
可能上面是個偶然吧,下午IIS運行仍然是那樣的錯誤。后來經過好幾次的檢查,發現與IIS沒有關系(我還重新安裝了IIS,昏,真是個笨蛋)!經過幾個小時的思考,最后還是把問題放了自己寫的那幾段代碼上!結果發現是一個堆棧溢出錯誤。昏死了,為什么.net報的錯誤卻是運行時調試錯誤!而且日志里記錄的也是一大堆的關于.net的DCOM錯誤問題:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{73B25FFD-F501-437B-8B11-7F0DE383964F}
to the user WEBB-COUNTRY-WU\ASPNET SID (S-1-5-21-1343024091-113007714-725345543-1010). This security permission can be modified using the Component Services administrative tool.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
一開始就被這幾行錯誤給迷惑了,結果浪費了幾個小時的時間。