Prevent static file handler from intercepting filename-like URL
In my web application I have a route which looks like this: routeCollection.MapRoute( "AdfsMetadata", // name "FederationMetadata/2007-06/FederationMetadata.xml", // url new { controller = "AdfsController", action = "MetaData" }); // defaults The idea behind this route was to work better with Microsoft AD FS server (2.0+) which looks for AD FS metadata at this point when you just specify a host name. With MVC3 all worked fine. But we upgraded the project to MVC4 recently and now the call for this URL results in a 404, the handler mentioned on the error page is StaticFile and the physical path