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-missing

在部署ASP.net 4.0项目过程中会出现的情况。

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应用池


由于 Web 服务器上的“ISAPI 和 CGI 限制”列表设置,无法提供您请求的页面。

进入IIS服务名称,点击ISAPI和CGI限制,进去后运行V4.0就OK


你可能感兴趣的:(asp.net,4.0,IIS7.5部署)