My .Net 4.0 web site is deployed on 3 servers with same code.
<deployment retail="true" /> is in machine.congig.
<compilation debug="false" optimizeCompilations="true" batch="true" defaultLanguage="c#" numRecompilesBeforeAppRestart="999999" targetFramework="4.0"> is in web.config.
It only happens in one of the machines,
It only happens in some rare times and can't be re-procedured.
It always can be fixed by a force compilation.
The web site is up & running, but actually some code is not compiled correctly.
Usually response 500 error when invoking those incorrest pages.
I even try to turn off
batch in web.config above, but doesn't help.
It is fixed finally by change
true, then change back to
Quite weird, and I want to give up App_Code now, it seems too unstable for me.
Do you ever occur the same problem?