c# - Stackoverflow exception under IIS: Can I give a better error message? -


We have a service running under IIS that may crash due to a stack overflow. However, it was not clear from the incident incident that happened. All I'm seeing

  Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7afa2 Faulting module name: clr.dll, version: 4.0.30319.18444, time Stamp: 0x52717f9a  

and

  A process serving the application pool 'x' encountered a fatal communication error with the Windows processing activation service. The data field contains the error number.  

We have the proper idea how to fix stackoverflow (repetition people to switch some of our recursive methods). However, is there some way to log stackoverflow to eventlog?

I understand that you can not hold the stackoverflows within the net, but maybe the IIS could handle this. Like if I run the console app with a deliberately engineered stack overflow, then I

  the process is terminated due to the stack overflow exception.  

Which is obvious

In addition, it does not seem to kick in fast unsuccessful protection. Maximum failures are set to 5, it starts restarting continuously <. /p>

Use debug diodes with MSFT It can be configured to create a process dump when a stack If overflow occurs then you can load the dump in the windbag and get the stack, which causes overflow. There is a lot of information about doing so, including training sessions on your blog in Tess.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -