Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

WebMethod works fine until it hits the closing braces - throws System.StackOverflowException

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
niama - 09 Mar 2005 01:19 GMT
Hi,

I am getting System.StackOverflowException when calling a web method.
The web method executes fine until it hits the closing braces that is
when the following StackOverflowException is thrown.
"An unhandled exception of type 'System.StackOverflowException'
occurred in mscorlib.dll".

Can someone help me with this?

Thanks in advance,
niama.
Manohar Kamath - 09 Mar 2005 01:37 GMT
I am guessing an infinite loop somewhere... can you check?

Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.com

> Hi,
>
[quoted text clipped - 8 lines]
> Thanks in advance,
> niama.
niama - 09 Mar 2005 17:53 GMT
Hi,

Thank you for the reply. Initially when I went through the code, I
could not find any infinite loop. But finally found the source of
error. I use a business class library in the webservice. That business
class library returns an object called Profile which has a list of
objects called Technologies. And each Technology object has a list of
Profile objects. This is actually an n:m relationship which forms a
circular relationship. When webservice trys to return the object, I
think it gets to an infinite loop when it tries to send the result in
XML format. Now it works fine.

Thank you.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.