ASP.NET MVC IgnoreRoute method doesn't work correctly when URL starts with “/Views/”
问题 I use ASP.NET MVC in my application. Users can specify their own images, styles, scripts by including them on the page. But when they specify URL to the file which not exists then routing mechanism tries to find controller and action by URL to image or styles etc. I've added a method IgnoreRoute and specified there all extensions I don't want to handle by routing. It works correctly until URL doesn't starts with "Views/...". In this case URL passes into application and executes error 404