Asp.Net MVC routing

Discussion in 'ASP.NET / ASP.NET Core' started by christian.blunden, Jul 4, 2009.

  1. During the Asp.net MVC beta, it was necessary to put a hack into the routing table in global.asax as such

    Code:
    routes.MapRoute("Default", "{controller}[B].mvc.aspx[/B]/{action}/{id}", new { controller = "Home", action = "Index", id = "" });
    
    Is it possible to do away with this now, so that we can get the benefit of clean URL's? I would like to just have;

    Code:
    routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" });
    
    I tried removing it and I get the following error..

    Code:
    controller.home.mvc.aspx' has not been registered
    
    Any help would be much appreciated

    regards

    Christian
     
  2. Unfortunately we can't register any microsoft component that is in beta stage unto the production server.
     
  3. The Asp.Net MVC product is no longer in beta it is now in official release.

    I think if DiscountASP.net is to offer true .Net hosting, then it should be on top of this release as another service offering.

    Any timeline as to when the MVC framework will be properly supported?
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    MVC is compatible w/ our server. However, we decided NOT to install the assembly onto the GAC because it is bin deployable.

    All you need to do is to upload the MVC assembly to the bin directory.
     

Share This Page