In my Global.asax.cs file, I have the following routines:
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Arrangement", action = "Index", id = "" } ); } protected void Application_Start() { RegisterRoutes(RouteTable.Routes);
Routing Debugger ...
When I press F5 , the application will launch, and if I donβt have a name with the name Index.aspx in the ~/Views/Home/ folder, I get a "View Missing" error message, although I redefined the default route and deleted HomeController . I would expect to get a routing debugger, and if not the one, at least the request for ~/Views/Arrangement/Index.aspx .
Breakpoint on RegisterRoutes(Routetable.Routes); never crashes when debugging.
I tried to build, rebuild, restart VS, clean, rebuild again, etc., but nothing works. Why does the application not run the current version of the code?
debugging compilation asp.net-mvc
Tomas Lycken Jun 09 '09 at 1:51 2009-06-09 01:51
source share