I have a build process where I deploy my website in release mode to the staging environment and apply appropriate web.config transforms in the process, however my deployed website, complete with all files (I double checked that they were there) returns a 404 for all non-static-file requests, unless I put debug="True"
back into the <compilation>
element of the web.config file. As soon as I do that, the website starts working. Why would removing this attribute cause http 404 errors?
UPDATE
I have determined that this is unrelated to the deployment process. On my local machine, just using Visual Studio 2010, compiling my application in release mode and removing debug="true"
from the web.config file (i.e. compiling views without debug symbols) causes all routing to fail, with all requests returning 404.