Our server is running Windows Server 2003. We have updated the .Net version of our sites in IIS to use 4.0. At random times, 1-2 times per week since the change was made, the rapid-fail is triggered and the site is taken down with 503 Errors.
The Application Logs shows a series of Errors that kick the rapid-fail trigger. There are sets of two errors each, up to the rapid fail trigger of 10. The errors are:
1:27:21 AM
.NET Runtime 4.0 Error
EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 app_code.xqrjkjyl, P5 0.0.0.0, P6 51345a6b, P7 252, P8 0, P9 system.stackoverflowexception, P10 NIL.1:27:11 AM
.NET Runtime
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to stack overflow.
Notice that the 4.0 error comes 10 seconds after the unnamed .Net error. I believe the unspecified .net version error is for the older 2.0 framework we have moved from.
In IIS6, the handlers are set to use 4.0. We have several application pools under the main site as well. web.config files for all of them specify 4.0 as the framework to use:
<compilation debug="false" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<!--<add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>-->
</assemblies>