I am creating a webforms / mvc hybrid application. All this works in VS with its debug web server. However, overcoming many other problems, I am really stuck with the od problem.
When viewing pages served by controllers, I get random characters in the url, but the site is still working, I think. For example, switching to / Route / Index leads me to (S (1t2ba055d2unxyqllwuntf55)) / Route / Index
Why are these odd characters generated?
My routes are as follows in Global.asax
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
routes.IgnoreRoute("{resource}.asmx/{*pathInfo}");
routes.IgnoreRoute("{resource}.svc/{*pathInfo}");
routes.MapRoute("Route", "{controller}/{action}/{id}",
new { action = "Index", id = "" });
I was informed that I had to add a default route without a controller, otherwise people could not go to / (root). MVC will try to match this. Surprisingly, this rule without a controller is part of the problem.
thank