ASP.net MVC routing issue

Discussion in 'ASP.NET / ASP.NET Core' started by cylentwolf, Sep 22, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hey all I got a mvc website up and my home controller is just working fine. However when I go to a custom controller:
    routes.MapRoute(
    "Region", // Route name
    "{controller}/{action}/{id}", // URL with parameters
    new { controller = "Region", action = "Index", id = UrlParameter.Optional } // Parameter defaults
    );

    it just gives me a 404. I have checked that the app pool is set to integrated. It works for my home controller as well as a gamemap controller but soon as I try to get to Region/Index/3 it gives me a 404 resource not found.

    any thoughts?
     
  2. I have noticed something interesting. its like the routing table just gets ignored for this route and controller.

    Requested URL http://www.cylentware.com:80/Region/Index/3
    Physical Path E:\web\cylentwarec\htdocs\Region\Index\3

    is the error I am getting. Clearly it isn't routing that to the controller like it is supposed to.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page