我有一个用Cassini开发和测试的mvc应用程序.在GoDaddy上部署到我的网站,默认页面就可以了.点击登录,我得到404.
我在IIS 7下运行,所以这是出乎意料的.我的路线很简单:
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Public", action = "Index", id = "" }
);
routes.MapRoute(
"Report1",
"Report/{action}/{start}/{end}",
new { controller = "Report", action = "Index" }
);
routes.MapRoute(
"Report2",
"Report/{action}/{start}/{end}/{idList}",
new { controller = "Report", action = "Index" }
);
Run Code Online (Sandbox Code Playgroud)
知道可能会发生什么或我如何解决这个问题?
我在Visual Studio 2012上使用C#创建了一个ASP.NET MVC4应用程序.但是在部署它时遇到了困难.我将项目的所有文件夹上传到我的服务器(godaddy).但仍然无法查看我的网站运行情况.
我的问题:这足以部署我的网站吗?还是需要什么?