How to track and fix IIS .NET appliacation StackOverflowException
.NET StackOverflowException is a special type of exception. Starting with .NET 2.0 you can't catch this kind of exception with a
try/catch block. Usually, it is a result of recursive method calls. Your program is out of free memory, and any clean-up does not make sense. Every time the .NET program has started, an instance of
StackOverflowException is created "just in case". This way framework can throw it (and terminate itself immediately) even if there is no free memory.