Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > WebMethod works fine until it hits the closing braces - throws System.StackOverflowException

Reply
Thread Tools

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

 
 
niama
Guest
Posts: n/a
 
      03-09-2005
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.

 
Reply With Quote
 
 
 
 
Manohar Kamath
Guest
Posts: n/a
 
      03-09-2005
I am guessing an infinite loop somewhere... can you check?

--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com


"niama" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> 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.
>



 
Reply With Quote
 
 
 
 
niama
Guest
Posts: n/a
 
      03-09-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
App configured as 2.0, throws event implying running as 1.1 in .net form browser control, works fine in IE jeremy ASP .Net 5 08-28-2006 10:30 AM
Dell X200 Cold-boot is fine, reboot throws "Operating System Not Found" Mike Computer Information 3 10-17-2005 03:18 PM
Dell X200 Cold-boot is fine, reboot throws "Operating System Not Found" Mike Computer Support 3 10-17-2005 03:18 PM
Javascript works fine until an asp.net button pushed tshad Javascript 13 03-25-2005 11:54 PM
Number of hits divided by "robot hits" Dos-Man HTML 5 03-04-2004 07:56 AM



Advertisments