> I need to attach to aspnet_wp.exe in order to debug a web serivice from
> WinForm client. Why don't I have to do this for ASP.NET / WebForm client?
>
> Why doesn't VS.NET debugger attaches automatically? Can I configure it?
Hi Stan,
It should be configured. Use F11 to step into web service method call and
see it there is any difference.

Signature
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Stan - 17 Mar 2005 14:11 GMT
I cannot even set a breakpoint inside of the web service - it is
unreachable..
Debugger does not step into the web service untill I attach it manually
> > I need to attach to aspnet_wp.exe in order to debug a web serivice from
> > WinForm client. Why don't I have to do this for ASP.NET / WebForm client?
[quoted text clipped - 5 lines]
> It should be configured. Use F11 to step into web service method call and
> see it there is any difference.
Ignus Fast - 17 Mar 2005 15:58 GMT
Sometimes I'll add the System.Diagnotics namespace and manually throw a
Debugger.Launch() just to force the issue...
Ignus
>I cannot even set a breakpoint inside of the web service - it is
> unreachable..
[quoted text clipped - 10 lines]
>> It should be configured. Use F11 to step into web service method call and
>> see it there is any difference.
Stan - 17 Mar 2005 16:34 GMT
I wish there were a better solution. Debugging a web service from WinForm
client is very unproductive. Not only do I need manually attach to
aspnet_wp.exe process but even doing so takes a long time. You set a
breakpoint, hit F5 and sit for a minute watching how VS.NET loads modules
in Output window.
It just takes too much time...
> Sometimes I'll add the System.Diagnotics namespace and manually throw a
> Debugger.Launch() just to force the issue...
[quoted text clipped - 15 lines]
> >> It should be configured. Use F11 to step into web service method call and
> >> see it there is any difference.
Stan - 17 Mar 2005 20:51 GMT
Martin,
It actually makes a difference - once I stop before the web service call and
then click F11, the debugger goes into the web service.
If I just set the breakpoint inside the web service and hit F5 - it does not
stop there.
This behaviour is different from debugging regular dlls or library serviced
components - debugger stops everywhere..
Thanks for the tip!
> > I need to attach to aspnet_wp.exe in order to debug a web serivice from
> > WinForm client. Why don't I have to do this for ASP.NET / WebForm client?
[quoted text clipped - 5 lines]
> It should be configured. Use F11 to step into web service method call and
> see it there is any difference.
Martin Kulov - 19 Mar 2005 15:58 GMT
> Martin,
>
[quoted text clipped - 8 lines]
>
> Thanks for the tip!
Hi Stan,
I had this issue some time ago and I was very puzzled with it. In the early
days of VS2002 this used to work without having to stop and then hit F11
AFAIK.
Glad that this helped you.
Regards,

Signature
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Stan - 23 Mar 2005 14:42 GMT
> I had this issue some time ago and I was very puzzled with it. In the early
> days of VS2002 this used to work without having to stop and then hit F11
> AFAIK.
Actually, I just realized that I don't even need to debug this any or any
other web services because initially I built the service wrong - web service
class that sits in code behind should not have any logic. The logic should
be in a separate component that should be called from a web service. In this
setup I almost never need to debug a web service, because it is not doing
much - just a pass through code. Instead I need to debug the component that
is being called.