I created a new MVC 4 project from an Internet application template in VS 2012 express, click here for more information
When I wanted to publish it, I received: HTTP 403.14 - Forbidden
I searched for a solution and found that it looked like a routing problem, other messages in stackoverflow give answers by changing MVC 3 global.asax commands.
when I tried to apply the same solution to MVC 4 global.asax, I found syntaxes that were too different from MVC 3 syntax, i.e. 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(); } } }
source share