1

I created a new MVC 4 project from the internet application template in VS 2012 express, for details click here

When I wanted to publish it, I got: HTTP 403.14 - Forbidden

I searched for a solution, and found that it looks like a routing issue, other posts in stackoverflow give answers through modifying MVC 3 global.asax instructions.

when I tried to apply the same solution to the MVC 4 global.asax I found syntaxes too different from those of MVC 3, 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();
            }
        }
    }
Community
  • 1
  • 1
Sami-L
  • 5,553
  • 18
  • 59
  • 87
  • My doubt was wrong, [This is why it happens](http://technet.microsoft.com/en-us/library/cc739664%28v=ws.10%29.aspx), and the solution is provided by Dommer [here](https://stackoverflow.com/questions/2659544/cant-run-asp-net-mvc-2-web-app-on-iis-7-5), The procedure is the same for Visual Studio 2012. – Sami-L Nov 23 '12 at 11:18

0 Answers0