This project is read-only.


  1. Can I use ASP.NET MVC with RoutingConfiguration?

    Yes, RoutingConfiguration supports ASP.NET MVC 3.

    In the default application file (Global.asax.cs) replace the contents of the RegisterRoutes method with a call to langsamu.Web.Routing.Configuration.RouteManager.RegisterRoutes.

    public static void RegisterRoutes(RouteCollection routes)
        //    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
        //    routes.MapRoute(
        //        "Default", // Route name
        //        "{controller}/{action}/{id}", // URL with parameters
        //        new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
        //    );

    Then you can register the default MVC routes through the Web.config file:

    <routing routeExistingFiles="false">
      <add type="Ignore" url="{resource}.axd/{*pathInfo}" />
      <add type="Mvc" name="Default" url="{controller}/{action}/{id}">
        <defaults controller="Home" action="Index" id="" />
  2. Can I use pre-compiled websites with RoutingConfiguration?


  3. Can I specify different namespaces for Mvc routes?

    Yes, see this discussion.

Last edited Dec 14, 2012 at 6:07 PM by langsamu, version 12


No comments yet.