Search code examples
asp.net.netmemory-leaksstack-overflow

System.Web.UI.Control.LoadRecursive() - Insufficient stack to continue executing the program safely.


I have an ASP.NET web application developed in C# and .Net v4. When you login in and leave for the page for some 15-20 minutes, I get the "Insufficient stack to continue executing the program safely."

According to my knowledge, there is no way you can try-catch the stackoverflow in .Net. I would imagine that recursive loading of web page and active session checking leading to this error (maybe a bad coding practice). I have also added the screenshot as i am able to figure it out from Stack trace. If anyone help me in this,it will be helpful.

Screen Shot


Solution

  • I think I have found the solution. Still the test. Check this Link and this they really looks promising. I will keep you guys updated when I succeed..

    Thank you all for your help.