473,721 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Needed help on 'System.StackOv erflowException '

Dear all,

I'm new to C# WebServices. I compile the WebService project it return no
errors "Build: 1 succeeded, 0 failed, 0 skipped".

Basically I have 2 WebMethod, when I try to invoke the first method it is
working fine. Then when I try to invoke the second method it return me an
error, Just In-Time Debugging, with error message
"An exception 'System.StackOv erflowException ' has occurred in WebServices"

What is the problem ? How to resolve it ?

Thanks in advance.
Nov 23 '05 #1
10 14849
it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a funtcion ,
a classic exmaple

public string SayHello()
{
return SayHello();
}

Regards
Erymuzuan Mustapa

Mae Lim wrote:
Dear all,

I'm new to C# WebServices. I compile the WebService project it return no
errors "Build: 1 succeeded, 0 failed, 0 skipped".

Basically I have 2 WebMethod, when I try to invoke the first method it is
working fine. Then when I try to invoke the second method it return me an
error, Just In-Time Debugging, with error message
"An exception 'System.StackOv erflowException ' has occurred in WebServices"

What is the problem ? How to resolve it ?

Thanks in advance.

Nov 23 '05 #2
Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?
"erymuzuan" wrote:
it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a funtcion ,
a classic exmaple

public string SayHello()
{
return SayHello();
}

Regards
Erymuzuan Mustapa

Mae Lim wrote:
Dear all,

I'm new to C# WebServices. I compile the WebService project it return no
errors "Build: 1 succeeded, 0 failed, 0 skipped".

Basically I have 2 WebMethod, when I try to invoke the first method it is
working fine. Then when I try to invoke the second method it return me an
error, Just In-Time Debugging, with error message
"An exception 'System.StackOv erflowException ' has occurred in WebServices"

What is the problem ? How to resolve it ?

Thanks in advance.

Nov 23 '05 #3
If you are the developer of the Web service, i.e. if you have access to
the code then you can always add a try/catch block around the lines in
your WebMethod:

[WebMethod]
public void MyMethod()
{
try
{
}
catch( Exception ex )
{
System.Diagnost ics.Debug.Write Line( ex.ToString() );
}
}

and run DebugView from www.sysinternals.com to read the error message.

If it's an ASP.NET web service with simple parameter types and you can
convince the owner to allow you to see the full exception messages by
setting
<customErrors
mode="Off">
in the service's web.config file, then you may want to try invoking the
web service from the browser by navigating to the service's URL and
entering the parameter values on the test page.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: Mae Lim [mailto:Ma****@d iscussions.micr osoft.com]
Posted At: Sunday, January 02, 2005 6:45 PM
Posted To: microsoft.publi c.dotnet.framew ork.webservices
Conversation: Needed help on 'System.StackOv erflowException '
Subject: Re: Needed help on 'System.StackOv erflowException '

Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?
"erymuzuan" wrote:
it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a funtcion ,
a classic exmaple

public string SayHello()
{
return SayHello();
}

Regards
Erymuzuan Mustapa

Mae Lim wrote:
Dear all,

I'm new to C# WebServices. I compile the WebService project it
return no errors "Build: 1 succeeded, 0 failed, 0 skipped".

Basically I have 2 WebMethod, when I try to invoke the first
method it
is working fine. Then when I try to invoke the second method it
return me
an error, Just In-Time Debugging, with error message
"An exception 'System.StackOv erflowException ' has occurred in WebServices"
What is the problem ? How to resolve it ?

Thanks in advance.


Nov 23 '05 #4
Hi Christoph,

I already added a try/catch block in the WebMethod. I've downloaded the
tools "DebugView" , but how this tool help to trace the StackOverflowEx ception
? When I try to run the "DebugView" it doesn't seem to catch any errors.

Please guide me. Thanks.
"Christoph Schittko [MVP]" wrote:
If you are the developer of the Web service, i.e. if you have access to
the code then you can always add a try/catch block around the lines in
your WebMethod:

[WebMethod]
public void MyMethod()
{
try
{
}
catch( Exception ex )
{
System.Diagnost ics.Debug.Write Line( ex.ToString() );
}
}

and run DebugView from www.sysinternals.com to read the error message.

If it's an ASP.NET web service with simple parameter types and you can
convince the owner to allow you to see the full exception messages by
setting
<customErrors
mode="Off">
in the service's web.config file, then you may want to try invoking the
web service from the browser by navigating to the service's URL and
entering the parameter values on the test page.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko

-----Original Message-----
From: Mae Lim [mailto:Ma****@d iscussions.micr osoft.com]
Posted At: Sunday, January 02, 2005 6:45 PM
Posted To: microsoft.publi c.dotnet.framew ork.webservices
Conversation: Needed help on 'System.StackOv erflowException '
Subject: Re: Needed help on 'System.StackOv erflowException '

Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?
"erymuzuan" wrote:
it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a funtcion , a classic exmaple

public string SayHello()
{
return SayHello();
}

Regards
Erymuzuan Mustapa

Mae Lim wrote:
> Dear all,
>
> I'm new to C# WebServices. I compile the WebService project it

return
no
> errors "Build: 1 succeeded, 0 failed, 0 skipped".
>
> Basically I have 2 WebMethod, when I try to invoke the first

method it
is
> working fine. Then when I try to invoke the second method it

return me
an
> error, Just In-Time Debugging, with error message
> "An exception 'System.StackOv erflowException ' has occurred in

WebServices"
>
> What is the problem ? How to resolve it ?
>
> Thanks in advance.


Nov 23 '05 #5
Hello Mae,
One option is you could see the stack trace of the exception if at all
and determine parts of yr code that are hit before the exception is thrown.
If yr using VS.net but a breakpoint in the begining of the method and step
through you code. To do this you need to use VS.net Debug Processes and attach
to aspnet_wp.exe or w3wp.exe.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?

"erymuzuan" wrote:
it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a
funtcion , a classic exmaple

public string SayHello()
{
return SayHello();
}
Regards
Erymuzuan Mustapa
Mae Lim wrote:
Dear all,

I'm new to C# WebServices. I compile the WebService project it
return no errors "Build: 1 succeeded, 0 failed, 0 skipped".

Basically I have 2 WebMethod, when I try to invoke the first method
it is working fine. Then when I try to invoke the second method it
return me an error, Just In-Time Debugging, with error message "An
exception 'System.StackOv erflowException ' has occurred in
WebServices"

What is the problem ? How to resolve it ?

Thanks in advance.

Nov 23 '05 #6
Hi Dilip,

I would like to know how do I use the VS.net Debug Processes and attach
to aspnet_wp.exe or w3wp.exe ?
"Dilip Krishnan" wrote:
Hello Mae,
One option is you could see the stack trace of the exception if at all
and determine parts of yr code that are hit before the exception is thrown.
If yr using VS.net but a breakpoint in the begining of the method and step
through you code. To do this you need to use VS.net Debug Processes and attach
to aspnet_wp.exe or w3wp.exe.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?

"erymuzuan" wrote:
it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a
funtcion , a classic exmaple

public string SayHello()
{
return SayHello();
}
Regards
Erymuzuan Mustapa
Mae Lim wrote:

Dear all,

I'm new to C# WebServices. I compile the WebService project it
return no errors "Build: 1 succeeded, 0 failed, 0 skipped".

Basically I have 2 WebMethod, when I try to invoke the first method
it is working fine. Then when I try to invoke the second method it
return me an error, Just In-Time Debugging, with error message "An
exception 'System.StackOv erflowException ' has occurred in
WebServices"

What is the problem ? How to resolve it ?

Thanks in advance.


Nov 23 '05 #7
Hello Mae,
In visual studio use the menu option Debug->Process... That will give you
a dialog box select aspnet_wp.exe if yr using XP or look for w3wp.exe in
Win2k3

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip,

I would like to know how do I use the VS.net Debug Processes and
attach to aspnet_wp.exe or w3wp.exe ?

"Dilip Krishnan" wrote:
Hello Mae,
One option is you could see the stack trace of the exception if at
all
and determine parts of yr code that are hit before the exception is
thrown.
If yr using VS.net but a breakpoint in the begining of the method and
step
through you code. To do this you need to use VS.net Debug Processes
and attach
to aspnet_wp.exe or w3wp.exe.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?

"erymuzuan" wrote:

it's hard to tell, without looking a the code, but most of the time
StackOverflowEx ception thrown when there's infinite loop in a
funtcion , a classic exmaple

public string SayHello()
{
return SayHello();
}
Regards
Erymuzuan Mustapa
Mae Lim wrote:
> Dear all,
>
> I'm new to C# WebServices. I compile the WebService project it
> return no errors "Build: 1 succeeded, 0 failed, 0 skipped".
>
> Basically I have 2 WebMethod, when I try to invoke the first
> method it is working fine. Then when I try to invoke the second
> method it return me an error, Just In-Time Debugging, with error
> message "An exception 'System.StackOv erflowException ' has occurred
> in WebServices"
>
> What is the problem ? How to resolve it ?
>
> Thanks in advance.
>

Nov 23 '05 #8
Hi Dilip,

I had follow the steps you mentioned, so what is the next step ? After debug
process, how do I know what is the result out of it ?

"Dilip Krishnan" wrote:
Hello Mae,
In visual studio use the menu option Debug->Process... That will give you
a dialog box select aspnet_wp.exe if yr using XP or look for w3wp.exe in
Win2k3

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip,

I would like to know how do I use the VS.net Debug Processes and
attach to aspnet_wp.exe or w3wp.exe ?

"Dilip Krishnan" wrote:
Hello Mae,
One option is you could see the stack trace of the exception if at
all
and determine parts of yr code that are hit before the exception is
thrown.
If yr using VS.net but a breakpoint in the begining of the method and
step
through you code. To do this you need to use VS.net Debug Processes
and attach
to aspnet_wp.exe or w3wp.exe.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi erymuzuan,

How do I trace where is the StackOverflowEx ception is thrown in the
WebServices ? Is there any tools that I can use ?

"erymuzuan" wrote:

> it's hard to tell, without looking a the code, but most of the time
> StackOverflowEx ception thrown when there's infinite loop in a
> funtcion , a classic exmaple
>
> public string SayHello()
> {
> return SayHello();
> }
> Regards
> Erymuzuan Mustapa
> Mae Lim wrote:
>> Dear all,
>>
>> I'm new to C# WebServices. I compile the WebService project it
>> return no errors "Build: 1 succeeded, 0 failed, 0 skipped".
>>
>> Basically I have 2 WebMethod, when I try to invoke the first
>> method it is working fine. Then when I try to invoke the second
>> method it return me an error, Just In-Time Debugging, with error
>> message "An exception 'System.StackOv erflowException ' has occurred
>> in WebServices"
>>
>> What is the problem ? How to resolve it ?
>>
>> Thanks in advance.
>>


Nov 23 '05 #9
Hello Mae,
Put a break point on the web method yr debugging, Invoke the service.
and step through the code... For indepth explanation refer http://msdn.microsoft.com/library/de...pplication.asp

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip,

I had follow the steps you mentioned, so what is the next step ? After
debug process, how do I know what is the result out of it ?

"Dilip Krishnan" wrote:
Hello Mae,
In visual studio use the menu option Debug->Process... That will give
you
a dialog box select aspnet_wp.exe if yr using XP or look for w3wp.exe
in
Win2k3
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip,

I would like to know how do I use the VS.net Debug Processes and
attach to aspnet_wp.exe or w3wp.exe ?

"Dilip Krishnan" wrote:

Hello Mae,
One option is you could see the stack trace of the exception if at
all
and determine parts of yr code that are hit before the exception is
thrown.
If yr using VS.net but a breakpoint in the begining of the method
and
step
through you code. To do this you need to use VS.net Debug Processes
and attach
to aspnet_wp.exe or w3wp.exe.
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> Hi erymuzuan,
>
> How do I trace where is the StackOverflowEx ception is thrown in
> the WebServices ? Is there any tools that I can use ?
>
> "erymuzuan" wrote:
>
>> it's hard to tell, without looking a the code, but most of the
>> time StackOverflowEx ception thrown when there's infinite loop in
>> a funtcion , a classic exmaple
>>
>> public string SayHello()
>> {
>> return SayHello();
>> }
>> Regards
>> Erymuzuan Mustapa
>> Mae Lim wrote:
>>> Dear all,
>>>
>>> I'm new to C# WebServices. I compile the WebService project it
>>> return no errors "Build: 1 succeeded, 0 failed, 0 skipped".
>>>
>>> Basically I have 2 WebMethod, when I try to invoke the first
>>> method it is working fine. Then when I try to invoke the second
>>> method it return me an error, Just In-Time Debugging, with error
>>> message "An exception 'System.StackOv erflowException ' has
>>> occurred in WebServices"
>>>
>>> What is the problem ? How to resolve it ?
>>>
>>> Thanks in advance.
>>>

Nov 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1823
by: Martyn Wynne | last post by:
Hi, Can anyone please tell me if there is any reason why when i am streaming from a webrequest (decompressing on route) to a file on the hard drive, i would be getting an exception of Filestream error System.StackOverflowException every time the file gets to 8580Kbs. Code is basically a modified Microsoft example, it errors on the line Dim ar As IAsyncResult = _
2
2830
by: Anders Both | last post by:
In a system with asynkronius socket and different collection, there are some times throw a System.StackOverflowException . I cannot really figur out why , Can someone say something clever about System.StackOverflowException ? Best Regards,
12
4504
by: Amy | last post by:
I'm getting a System.StackOverflowException, and I can't see why. Here's the code that's throwing the exception. I don't see anyting that's recursive about it. Any help is appreciated (including help in debugging - I'm not sure what I'd put in a try or catch clause here): DataDealings sql = new DataDealings(); myProject = sql.GetProject(pID); -------------------------------------------------------------------------------------
3
3557
by: Patrick.O.Ige | last post by:
Error:- System.StackOverflowException: Exception of type System.StackOverflowException was thrown. When is this thrown.. Any ideas
0
8526
by: Nikhil Khade | last post by:
Hello, After around 3 months, I reopened a old VB.NET solutions which used to work (and build) without any errors. Just to test it again, I build it again and it completed, without any errors, but then immediately started showing me the message "An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll" at InitializeComponent() with all lines containing Image load or default icon, like the following: ...
2
2128
by: Modica82 | last post by:
Hi all, I am trying to generate a stub class for my web service using wsdl.exe but every time i run it from the visual studio command prompt i get a System.StackOverFlowException. Has anyone got an ideas? My XSD Files have been verified and are working so what could be the problem??? Regards,
1
1607
by: HyVong | last post by:
Hi Everyone, please help, i'm very frustrated because i can't run my application. I built my application using the .NET Installer, i ran the installer on the development machine and it sets the iis and everything is running fine. But when i take that installer and run it on another machine, i was able to see the login page but i can't connect to the database, but i got the database information right on the web.config file and all the...
12
5119
by: daz_oldham | last post by:
Hi everyone As my expedition into OOP takes another shaky step, I now am getting the error: An unhandled exception of type 'System.StackOverflowException' occurred in xxx.dll. In my Visit.cls I have got:
1
5755
by: vighnesh | last post by:
Hi All Can anyone please let me know how to catch an unhandled exception like " An Unhandled exception of type 'system.stackoverflowexception' occured in mscorlib.dll " I am unable to catch this using "try - catch - end try" block. Thanks in advance
0
8840
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9064
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.