如何部署MVC应用程序共享托管服务器上?

问题描述:

我在我的网站上HELM控制面板。我开发我的网站上MVC.But我的托管服务提供商有安装在主机帐户框架3.5和IIS6一个下列组件。但我无法运行我的网站就显示我找不到页面错误。

I My Web site on a HELM Control Panel. I developed my web site on MVC.But My Hosting Provider having a Following components installed on That Hosting Account framework 3.5 and IIS6. But I am Unable to Run My site it display me Page not found error.

问题将是你IIS6下运行,如果它在共享主机你不可能有足够的控制,使运行的MVC没有作弊了一下。

The problem will be that you're running under IIS6 and if its on shared hosting you're unlikely to have sufficient control to make MVC run without "cheating" a bit.

在IIS6请求仅路由到ASP.NET处理程序(我不能保证得到正确的术语),如果他们有正确的扩展名(的.aspx,的.asmx,.ashx的,等等),用一个漂亮的MVC网址有没有延伸一切都那么它不会由ASP.NET看到,因此请求将不会你的MVC应用程序内打路由和等你拿找不到页面。

Under IIS6 requests are only routed to the ASP.NET handlers (I don't promise to get the terminology right) if they have the right extension (.aspx, .asmx, .ashx, etc) with a nice MVC URL there's no extension at all so it doesn't get see by ASP.NET and hence the request won't hit the routing within your MVC app and so you get page not found.

在IIS7一切(ISH)穿过ASP.NET处理程序,所以它只是工作。

Under IIS7 everything (ish) goes through the ASP.NET handler and so it just works.

于是几个环节,以帮助,这里有一个计算器的问题:
http://*.com/questions/34194/asp-net-mvc-on-iis6

So a couple of links to help, here's a * question: http://*.com/questions/34194/asp-net-mvc-on-iis6

和这里的菲尔哈克关于这个问题:
http://haacked.com /archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

and here's Phil Haack on the subject: http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

希望这有助于。
http://haacked.com /archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx