Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

Debugging a IIS hosted WCF Service

 
 
Thread Tools Display Modes
Old 12-19-2006   #1 (permalink)
wschaub
Guest


 

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.


Old 12-19-2006   #2 (permalink)
Vadym Stetsyak
Guest


 

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


Old 12-19-2006   #3 (permalink)
wschaub
Guest


 

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
>



Old 01-02-2007   #4 (permalink)
Joerg Jooss
Guest


 

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


 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF service hosted in IIS soworl .NET General 0 03-07-2008 10:56 AM








Vistax64.com 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 2005-2008

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 47 48 49 50