部署asp.net MVC的测试到IIS 6造成404的 [英] Deploy asp.net mvc beta to iis 6 causing 404's

查看:279
本文介绍了部署asp.net MVC的测试到IIS 6造成404的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我挣扎在IIS 6进行部署时避开从asp.net的MVC测试版的404错误我在previews之一,这方面的工作通过映射.mvc在IIS中,但这不再有效。我读过<一个href=\"http://msmvps.com/blogs/omar/archive/2008/06/30/deploy-asp-net-mvc-on-iis-6-solve-404-com$p$pssion-and-performance-problems.aspx\"相对=nofollow>奥马尔的帖子和其他几个人在网络上,并试图他们的解决方案,但至今没有运气。

I'm struggling to get around the 404 errors from asp.net mvc beta when deploying on IIS 6. I had this working in one of the previews by mapping .mvc in IIS but this no longer works. I've read Omar's post and several others on the web and tried their solutions but no luck so far.

主页没有问题打开IIS 6上,但其他404和网站运行良好的IIS 7。

The home page opens without a problem on IIS 6 but others 404 and the site runs well on IIS 7.

有没有人部署asp.net mvc的测试版IIS 6成功?如果是这样,你需要什么样的调整作出了code和/或IIS设置,以获得它的工作?

Has anybody deployed asp.net mvc beta to IIS 6 with success? If so, what adjustments did you need to make to the code and/or IIS settings to get it to work?

推荐答案

我发现从的史蒂夫·桑德森的博客(感谢史蒂夫):

I found a solution to my problem from Steve Sanderson's blog (Thanks Steve):

方法1:使用一个通配符映射
  ASPNET_ISAPI.DLL这告诉IIS 6中
  处理使用ASP.NET的所有请求,所以
  路由总是调用,并且有
  没问题。它的死很容易设置:
  打开IIS管理器,右击
  应用程序,去属性,然后主页
  目录选项卡,然后单击
  组态。在通配符
  应用程序映射,单击插入(不
  添加,这是容易混淆的正上方)
  然后进入
  C:\\ WINDOWS \\ Microsoft.NET \\框架\\ V2.0.50727 \\ ASPNET_ISAPI.DLL
  为可执行文件,并取消验证
  该文件存在。

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.

这篇关于部署asp.net MVC的测试到IIS 6造成404的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆