I had a major problem this week with an MVC app. All of a sudden, all the styles and images stopped working.
Man, I spent hours on this trying all sorts of stuff. I setup a new project and stuff worked. So what the heck is up.
Then I started playing around one item at a time to figure out what was going on.
Eventually I thought, hm, I was working on debugging routes. So lets try the global.asax file items.
Well, a line of code was lurking there that I picked up from the route debugger sample (http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx):
RouteTable.Routes.RouteExistingFiles = True
I commented out this line and whoa, the app was fine. Hm. So its messing some stuff up.
Theres more info on this code here:http://forums.asp.net/t/1263849.aspx
Bottom line is to be careful when you enable a feature in your application.