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.StackOverflowException' has occurred in WebServices"
What is the problem ? How to resolve it ?
Thanks in advance. 10 14793
it's hard to tell, without looking a the code, but most of the time
StackOverflowException 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.StackOverflowException' has occurred in WebServices"
What is the problem ? How to resolve it ?
Thanks in advance.
Hi erymuzuan,
How do I trace where is the StackOverflowException 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 StackOverflowException 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.StackOverflowException' has occurred in WebServices"
What is the problem ? How to resolve it ?
Thanks in advance.
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.Diagnostics.Debug.WriteLine( 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****@discussions.microsoft.com] Posted At: Sunday, January 02, 2005 6:45 PM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Needed help on 'System.StackOverflowException' Subject: Re: Needed help on 'System.StackOverflowException'
Hi erymuzuan,
How do I trace where is the StackOverflowException 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 StackOverflowException 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.StackOverflowException' has occurred in WebServices" What is the problem ? How to resolve it ?
Thanks in advance.
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 StackOverflowException
? 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.Diagnostics.Debug.WriteLine( 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****@discussions.microsoft.com] Posted At: Sunday, January 02, 2005 6:45 PM Posted To: microsoft.public.dotnet.framework.webservices Conversation: Needed help on 'System.StackOverflowException' Subject: Re: Needed help on 'System.StackOverflowException'
Hi erymuzuan,
How do I trace where is the StackOverflowException 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 StackOverflowException 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.StackOverflowException' has occurred in WebServices" > > What is the problem ? How to resolve it ? > > Thanks in advance.
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 StackOverflowException 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 StackOverflowException 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.StackOverflowException' has occurred in WebServices"
What is the problem ? How to resolve it ?
Thanks in advance.
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 StackOverflowException 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 StackOverflowException 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.StackOverflowException' has occurred in WebServices"
What is the problem ? How to resolve it ?
Thanks in advance.
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 StackOverflowException 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 StackOverflowException 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.StackOverflowException' has occurred > in WebServices" > > What is the problem ? How to resolve it ? > > Thanks in advance. >
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 StackOverflowException 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 > StackOverflowException 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.StackOverflowException' has occurred >> in WebServices" >> >> What is the problem ? How to resolve it ? >> >> Thanks in advance. >>
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 StackOverflowException 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 StackOverflowException 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.StackOverflowException' has >>> occurred in WebServices" >>> >>> What is the problem ? How to resolve it ? >>> >>> Thanks in advance. >>>
One additional note, you will need to set the "Application Protection" for
the virtual directory where your web service lives to "Low (IIS Process)" in
order for your breakpoint to be hit.
Allen
"Dilip Krishnan" wrote: 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 StackOverflowException 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 StackOverflowException 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.StackOverflowException' has >>>> occurred in WebServices" >>>> >>>> What is the problem ? How to resolve it ? >>>> >>>> Thanks in advance. >>>> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
by: Patrick.O.Ige |
last post by:
Error:-
System.StackOverflowException: Exception of type
System.StackOverflowException was thrown.
When is this thrown..
Any ideas
|
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,...
|
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...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
Hello Experts!
I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |