Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi
 
Environment:


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.
 

Issue:
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 optimizeCompilations & batch in web.config above, but doesn't help.
 
It is fixed finally by change debug to true, then change back to false again.
 
Quite weird, and I want to give up App_Code now, it seems too unstable for me.
 
Do you ever occur the same problem?
Posted 30-Sep-12 13:50pm
Jerry.Wang40.9K
Comments
Kuthuparakkal at 30-Sep-12 23:59pm
   
Try app pool restart, it occurs sometimes when we deploy new version.
http://msdn.microsoft.com/en-us/library/microsoft.web.administration.applicationpool.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 334
1 Kornfeld Eliyahu Peter 325
2 Maciej Los 239
3 OriginalGriff 188
4 King Fisher 185
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100