Up until last week our build script would compile our application (a very old .net 2.0 site running MCMS) and dump it onto our test server. After running it yesterday, the site was suddenly getting all sorts of errors, most of which seemed to be being caused by the methods in the global.ashx.cs file not being called (e.g. building caches and such).
Cue 5 hours of hair pulling before I found the answer.
There were two files: app_code.compiled and app_global.asax.compiled which up until last week had been being deployed with the release. Now, they aren't. I put them back in from a previous build and now the site functions as expected.
Nobody here claims to have altered the configuration... Can anybody tell me why these vital files are suddenly not being published when we run a build!?
EDIT
When I publish locally it creates the files. I then check in and build using TFS and the two files do not appear in the drop location.
Another Edit
http://forums.asp.net/t/1723066.aspx/1 <-- this is what's happening, no answer there though. I'm tearing my hair out here guys, can anyone help?