1
我創建在VS 2012 Express中的互聯網應用程序模板創建一個新的MVC 4項目後,默認文檔,for details click hereASP.net MVC 4,如何保持路由項目發佈
當我想出版,我:HTTP 403.14 - 禁止
我搜索了一個解決方案,發現它看起來像一個路由問題,其他帖子在stackoverflow通過修改MVC 3 global.asax指令給出答案。
當我試圖相同的解決方案適用於MVC 4 global.asax中,我發現語法從那些MVC 3,的差異太大即RouteConfig.RegisterRoutes(RouteTable.Routes)
namespace MyMVC4
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
AuthConfig.RegisterAuth();
}
}
}
現在我正在尋找[在這個方向](http://stackoverflow.com/questions/2659544/cant -run-asp-net-mvc-2-web-app-on-iis-7-5),希望這會對我有所幫助。 –