Print Page | Close Window

StackOverflowException

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2874
Printed Date: 13-May-2026 at 7:58am


Topic: StackOverflowException
Posted By: GeorgeB
Subject: StackOverflowException
Date Posted: 08-Aug-2011 at 9:46am
Hi
 
I'm using DevForce Silverlight 6.1.2.0
 
I have a Silverlight application running in Windows Azure. We started getting 503 errors and I found errors in the Event Viewer showing the application pool stopping after some errors.
 
I've pulled the database down from SQL Azure onto my development machine and I'm getting a StackOverflowException (an unhandled exception of type 'System.StackOverflowException' occurred in System.Runtime.Serialization.dll.
 
Where do I start to look as there is nothing in the debug log and I can't see how to catch this.
 
Some more testing and I get "An unhandled Microsoft.NET Framework exception occurred in w3wp.exe". So that would be IIS which means the application pool is stopping after a max of 5 failures which explains why I'm seeing the 503 error.
 
Kr
George



Replies:
Posted By: robertg
Date Posted: 09-Aug-2011 at 3:00pm
Since StackOverflowException can't be caught, I'm not surprised that  you're having trouble finding the problem.
 
I think, though, that if you run the application in debug, you may be able to view the exception in the Exception Assistant.
 
Do you know what part of your code is triggering the exception? I would test each of the components of my application until I found the part that triggers the error, then check that code for any logic that might be generating nested method calls.


Posted By: GeorgeB
Date Posted: 09-Aug-2011 at 10:19pm
Hi robertg
 
Since the exception is happening inside IIS in the IdeaBlade libraries it would be impossible for me to debug.
 
If I remove one of the .Includes(), I don't get the overflow. I put it back - bang.
 
Very frustrating.
 
I will probably move this to a private discussion with oen of the IdeaBalde team.
 
Kr
George


Posted By: BringerOD
Date Posted: 12-Mar-2012 at 1:38pm
I am having the exact same issue.

Any luck with this?


Posted By: kimj
Date Posted: 13-Mar-2012 at 9:13am
Where are you seeing the problem Bryan? 
 
In the 6.1.5 release we added an "alternate" serialization mode which will address stack overflows which occur during serialization of a "deep" graph.  If that looks like your problem, you can find out more here - http://drc.ideablade.com/xwiki/bin/view/Documentation/SerializationContext - http://drc.ideablade.com/xwiki/bin/view/Documentation/SerializationContext . 


Posted By: BringerOD
Date Posted: 13-Mar-2012 at 9:59am
Just saw that.  I am on 6.1.4.  I will upgrade and check it out.
 
Thanks



Print Page | Close Window