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.

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...