服務(wù)熱線
153 8323 9821
今天在部署一個(gè)ASP.NET 4.0 Web應(yīng)用程序時(shí),遇到下面一個(gè)很棘手的問題,出現(xiàn)下面的錯(cuò)誤:
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.
翻譯成中文:
服務(wù)器應(yīng)用程序不可用
您試圖在此 Web 服務(wù)器上訪問的 Web 應(yīng)用程序當(dāng)前不可用。請(qǐng)點(diǎn)擊 Web 瀏覽器中的“刷新”按鈕重試您的請(qǐng)求。
管理員注意事項(xiàng): 詳述此特定請(qǐng)求失敗原因的錯(cuò)誤信息可在 Web 服務(wù)器的系統(tǒng)事件日志中找到。請(qǐng)檢查此日志項(xiàng)以查明導(dǎo)致該錯(cuò)誤發(fā)生的原因。
搜索了網(wǎng)上的大量資料,有三,如下:
1.重新開一個(gè)應(yīng)用程序池,然后為這個(gè)目錄單獨(dú)指定這個(gè)池
2.訪問權(quán)限的設(shè)置問題
3.重新裝iis,再裝framework
我的問題是屬于第二個(gè),訪問權(quán)限的問題。做如下設(shè)置即可解決該問題:
在該web sites的virtual directory下,將Permissions設(shè)置一下,里面應(yīng)包含
ASP.NET
IIs_WPG
Internet來賓帳戶
System
設(shè)置后,一切運(yùn)行正常.。