Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Debugging a IIS hosted WCF Service

 
 
Old 12-19-2006   #1 (permalink)
wschaub


 
 

Debugging a IIS hosted WCF Service

Using .NET3, have there been any changes in terms of being able to debug a
IIS hosted WCF service, i.e. stepping into service or setting breakpoints in
the service. The only way we have been able to debug WCF services in IIS
with the released .NET3, is by attaching the debugger to the aspnet_wp.exe
process manually and then setting breakpoints or stepping into service
methods. If anyone can shed some light on/debug this it would be much
appreciated as we have numerous dev teams struggling with the
development/debugging process.



My System SpecsSystem Spec
Old 12-19-2006   #2 (permalink)
Vadym Stetsyak


 
 

Re: Debugging a IIS hosted WCF Service

Hello, wschaub!

IMO there are several ways how to enhance debugging.
- create ordinary ASP.NET project and add WCF stuff there
- create console application that will host your WCF services and
do the debugging using that console app
- insert into service method a call to Debugger.Lauch() this will trigger
debugger window

I'd recommend using separate host for debugging ( console app )

You wrote on Tue, 19 Dec 2006 14:11:49 +0200:

w> Using .NET3, have there been any changes in terms of being able to
w> debug a
w> IIS hosted WCF service, i.e. stepping into service or setting
w> breakpoints in
w> the service. The only way we have been able to debug WCF services in
w> IIS
w> with the released .NET3, is by attaching the debugger to the
w> aspnet_wp.exe
w> process manually and then setting breakpoints or stepping into
w> service
w> methods. If anyone can shed some light on/debug this it would be much
w> appreciated as we have numerous dev teams struggling with the
w> development/debugging process.



With best regards, Vadym Stetsyak.
Blog: http://vadmyst.blogspot.com


My System SpecsSystem Spec
Old 12-19-2006   #3 (permalink)
wschaub


 
 

Re: Debugging a IIS hosted WCF Service

Thanks ... I agree with your recommendation using a seperate host.

"Vadym Stetsyak" <vadym_s@ukr.net> wrote in message
news:OslIKv3IHHA.1240@TK2MSFTNGP03.phx.gbl...
> Hello, wschaub!
>
> IMO there are several ways how to enhance debugging.
> - create ordinary ASP.NET project and add WCF stuff there
> - create console application that will host your WCF services and
> do the debugging using that console app
> - insert into service method a call to Debugger.Lauch() this will trigger
> debugger window
>
> I'd recommend using separate host for debugging ( console app )
>
> You wrote on Tue, 19 Dec 2006 14:11:49 +0200:
>
> w> Using .NET3, have there been any changes in terms of being able to
> w> debug a
> w> IIS hosted WCF service, i.e. stepping into service or setting
> w> breakpoints in
> w> the service. The only way we have been able to debug WCF services in
> w> IIS
> w> with the released .NET3, is by attaching the debugger to the
> w> aspnet_wp.exe
> w> process manually and then setting breakpoints or stepping into
> w> service
> w> methods. If anyone can shed some light on/debug this it would be much
> w> appreciated as we have numerous dev teams struggling with the
> w> development/debugging process.
>
>
>
> With best regards, Vadym Stetsyak.
> Blog: http://vadmyst.blogspot.com
>



My System SpecsSystem Spec
Old 01-02-2007   #4 (permalink)
Joerg Jooss


 
 

Re: Debugging a IIS hosted WCF Service

Thus wrote wschaub,

> Using .NET3, have there been any changes in terms of being able to
> debug a IIS hosted WCF service, i.e. stepping into service or setting
> breakpoints in the service. The only way we have been able to debug
> WCF services in IIS with the released .NET3, is by attaching the
> debugger to the aspnet_wp.exe process manually and then setting
> breakpoints or stepping into service methods. If anyone can shed some
> light on/debug this it would be much appreciated as we have numerous
> dev teams struggling with the development/debugging process.


Debugging a IIS hosted service works like debugging an ASP.NET web site.
The only thing you want to do differently is to set your web site's startup
mode to "Don't open a web page" (unless your site hosts both ASP.NET pages
and WCF services) and you're good to go.

Cheers,
--
Joerg Jooss
news-reply@joergjooss.de


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
WCF service hosted in IIS .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46