Re: Debugging a WebService

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Magne Ryholt (magne.ryholt_at_bluezone.no)
Date: 11/30/04


Date: Tue, 30 Nov 2004 21:21:56 +0100

Is it possible to automate this so we don't need to attach every time we
start a new debug session ?
"Drew Marsh" <drub0y@hotmail.no.spamming.com> wrote in message
news:eRI8MmmzEHA.4028@TK2MSFTNGP15.phx.gbl...
> Arne wrote:
>
>> Is there a secret trick to debugging a Web service?
>> I compile my web service and test app in debug mode.
>> The webservice has <compilation defaultLanguage="vb" debug="true" />
>> in
>> web.config.
>> I set breakpoints in my web service.
>> I try to step into my web services with F11 from my test app.
>> My webservices executes, but I never reach my breakpoint and my
>> webservice
>> never executes in debug mode.
>
> The problem is you probably set your test app as the startup project which
> means the debugger will attach to that process, however it will not
> automatically attach to ASP.NET's process. You need to explicitly attach
> to the process by going to Debug -> Processes -> Find and double click
> aspnet_wp.exe -> Make sure Common Language Runtime is checked off and hit
> ok.
>
> Now you're debugging both processes and should get the exact debugging
> experience you're expecting.
>
> HTH,
> Drew
>



Relevant Pages

  • Re: QUERY: debugging ASP VBScript
    ... effect to the debugging. ... >> dllhost.exe and click on attach. ... >> the web application running and whenever I want to debug I follow these ... >>> on the client and the server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Microsoft CLR Debugger in Compact dot net framework
    ... I use Visual Studio 2005 for development and it allows to run a PPC ... application in debug mode and do everything as if you ... attach the debugger to the process. ... debugging features are now probably exceeding those in WinDbg. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Why cant I step into my web service?
    ... You will have to manually attach the debugger to the process. ... In VS.NET, go to Debug> Processes... ... Find the IIS process running your web service (may be ... You will need to make sure CLR is selected for debugging on the next screen. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: VS 2005 (NO sp1)
    ... Set a breakpoint in your Web service method ... click Attach to Process ... I am unable to debug into a web service code that is running on my computer. ... I have complied, updated reference, added/removed reference. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: VS 2005 (NO sp1)
    ... You can attach the debugger to both the device app and the web service at the same time. ... "Neil Cowburn" wrote in message ... On the Debug menu, ...
    (microsoft.public.dotnet.framework.compactframework)