I was having trouble debugging why a route was throwing a 404 when I was positive I set it up correctly. I made changes, rebuilt, still 404, I did all kinds of crazy stuff to the route but always 404.
then in my frustration I just deleted ALL the routing in global.asax, saved rebuilt and ran. I still got 404…
but the rest of the site didn’t break!! how can this be? I thought you had to route paths or nothing would work… even my custom routing still worked. I rebuilt, resaved web.config. I even stopped the website, and even the application pool and even IIS ENIIRELY, then restarted evertyhing…
all my routing still seems to be there!
I even threw a divide by zero and even FORCED an exception to be thrown on Application_Start… none of it changed anything…
what in the holy hell is going on? are my routes being cached somewhere? WHERE?!
okay this was retarted. it turns out that SOMEHOW, the following line was removed from my csproj file:
I don’t know how it happened or why.. it’s dumb and retarted and I’m completely upset that I lost two days of productivity because of it…
but I’m glad it’s fixed. thanks for your help!