How to deployed Mvc Application on shared-hosting Server?

十年热恋 提交于 2019-12-23 01:33:47

问题


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.


回答1:


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.

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.

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

So a couple of links to help, here's a stackoverflow question: ASP.NET MVC on IIS6

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

Hope this helps. http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx



来源:https://stackoverflow.com/questions/2735185/how-to-deployed-mvc-application-on-shared-hosting-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!