ASP.NET MVC Incoming request does not match any route
Been developing an MVC application over the last month or so and struggled getting the first version installed and running on the client’s web server this week. No problems running locally but refused to run on the web server.
I use NAnt and CC.NET for my integration platform and configured a quick build file for the MVC application, taking a lot of the settings from our .NET 2 projects at work, without giving it much thought. Ran the build and deployed the files – ERROR – Incoming request does not match any route.
I was deploying to IIS6 and no amount of wildcard mappings or .mvc extensions helped.
In the end, turns out my problem was caused by a missing Global.asax file. Sounds simple now but excluding them in .NET 2 projects is never an issue as the application config location is determined from a .compiled file in the bin directory.
Putting the Global.asax stub file back in the website root and all is good in the world again!
Comments (3)