ASP.NET MVC 2 - How to ignore an entire directory using IgnoreRoute? ASP.NET MVC 2 - How to ignore an entire directory using IgnoreRoute? asp.net asp.net

ASP.NET MVC 2 - How to ignore an entire directory using IgnoreRoute?


Try

routes.RouteExistingFiles = falseroutes.IgnoreRoute("Assets/{*pathInfo}")


routes.IgnoreRoute("Ignore/");

will prevent the standard

The controller for path '/Crap/Home' was not found or does not implement IController. Asp.net mvc exception.