I have a problem with Visual Studio 2012 which is driving me crazy. We're developing an ASP.NET web app and on app start up it has to load a lot of stuff into memory. It sometimes takes between 20-30 for it to start up and be ready to server the first http requests.
We're using TFS source control and basically, every times someone edits a file, TFS marks the file as "checked out" (the little red check mark appears next to the filename icon in the Solution Explorer) AND instantly creates and deletes a "app_offline.htm" file in the root of the web app.
This causes the Web Application to unload. I used logging in the Application_Start and Application_End events to find this out. Then I used SysInternals Process Monitor to see what activity was happening. When I saw app_offline.htm being mentioned within the cryptic output of procmon, I used a separate File System Watcher called Directory Monitor which confirmed that the app_offline.htm was indeed being created and instantly deleted.
The knock-on effect of this is that if you have a few changes to make, the app has to unload/reload many many times during development. This is wasting hours.
Not only that, the constantly reloading of the app domain causes IIS to eventually run out of memory and then we have to do an IISRESET.
Does anyone know why TFS creates this file? And whether there is any way to get it to stop?