Application.config “disappears” when debugging Azure WebRole if I stop at the breakpoint for too long

I noticed this and continued. If I debug my Azure WebRole locally, in Visual Studio 2013, and I pause at the breakpoint for too long, the current request, or the next, and all subsequent requests will result in error 500.19 - Internal server error.

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:
Module          CustomErrorModule
Notification    SendResponse
Handler         Not yet determined
Error Code      0x80070490
Config Error    The configuration section 'system.webServer/httpErrors' cannot be read because it is missing a section declaration
Config File     \\?\C:\Users\<user>\AppData\Local\dftmp\Resources\11468ba0-d99a-45d2-bcce-eae28c7b4e2f\temp\temp\RoleTemp\applicationHost.config
Requested URL   <request url>
Physical Path      
Logon Method    Not yet determined
Logon User      Not yet determined

Event Viewer says:

The worker process for application pool '902aa9af-0ed8-4126-be43-e533339bdeef' encountered an error 'Cannot read configuration file' trying to read global
module configuration data from file '\\?\C:\Users\<user>\AppData\Local\dftmp\Resources\11468ba0-d99a-45d2-bcce-eae28c7b4e2f\temp\temp\RoleTemp\applicationHost.config', 
line number '0'.  Worker process startup aborted.

And if I go check this directory, I see that this file is not there. I assume the file was there at some point, because I could make requests before that.

Restarting WebRole seems to fix the problem.

99% , , , "", , - .: (

+4

All Articles