ASP.NET 4.0 site displaying error - ISAPI 「Restric

http://stackoverflow.com/questions/10676473/asp-net-4-0-site-displaying-error-isapi-restriction-column-is-missingweb

在部署ASP.net 4.0項目過程當中會出現的狀況。api

The requested content appears to be script and will not be served by the static file handler.服務器

請執行一下代碼
C:\Users\Administrator>cd..

C:\Users>cd..

C:\>cd Windows

C:\Windows>cd Microsoft.NET

C:\Windows\Microsoft.NET>cd Framework64

C:\Windows\Microsoft.NET\Framework64>cd v4.0.30319

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -ir
Start installing ASP.NET (4.0.30319) without changing existing web applications
to use this version of ASP.Net.
..........
Finished installing ASP.NET (4.0.30319) without changing existing web applicatio
ns to use this version of ASP.Net.
以後給網站添加對應的4.0應用池app


因爲 Web 服務器上的「ISAPI 和 CGI 限制」列表設置,沒法提供您請求的頁面。網站

進入IIS服務名稱,點擊ISAPI和CGI限制,進去後運行V4.0就OKthis

相關文章
相關標籤/搜索