asp.net-mvc – 将asp.net mvc beta部署到iis 6,导致404

前端之家收集整理的这篇文章主要介绍了asp.net-mvc – 将asp.net mvc beta部署到iis 6,导致404前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在IIS 6上部署时,我正在努力解决asp.net mvc beta的404错误.我已经通过在IIS中映射.mvc来在其中一个预览中工作,但是这不再适用.我已经阅读了 Omar’s post和其他几个在网络上,并尝试他们的解决方案,但没有运气到目前为止.

主页在IIS 6上打开无问题,但其他404打开,网站在IIS 7上运行良好.

有没有人成功部署asp.net mvc beta到IIS 6?如果是这样,您需要对代码和/或IIS设置进行哪些调整以使其正常工作?

解决方法

我从 Steve Sanderson’s blog发现了一个解决我的问题(谢谢史蒂夫):

Option 1: Use a wildcard mapping for aspnet_isapi.dll This tells IIS 6 to process all requests using ASP.NET,so routing is always invoked,and there’s no problem. It’s dead easy to set up: open IIS manager,right-click your app,go to Properties,then Home Directory tab,then click Configuration. Under Wildcard application maps,click Insert (not Add,which is confusingly just above),then enter C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll for “Executable”,and uncheck Verify that file exists.

原文链接:https://www.f2er.com/aspnet/250869.html

猜你在找的asp.Net相关文章