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 .svc service

 
 
Old 05-03-2006   #1 (permalink)
Mike Russo


 
 

Debugging a .svc service

I have a WCF service project that I created in VS2005 with the "WinFX Service
Library" template. I can set a breakpoint in its Service.cs file but it
doesn't break when the service is used by a client. I have debug="true" in
the Web.config file of the service. Should it be possible to debug this type
of project?

My System SpecsSystem Spec
Old 05-05-2006   #2 (permalink)
Martin Kulov [MVP]


 
 

Re: Debugging a .svc service

"Mike Russo" <Mike Russo@discussions.microsoft.com> wrote in message
newsCB5163B-F00D-4192-B290-B08B8F7F122B@microsoft.com...
>I have a WCF service project that I created in VS2005 with the "WinFX
>Service
> Library" template. I can set a breakpoint in its Service.cs file but it
> doesn't break when the service is used by a client. I have debug="true"
> in
> the Web.config file of the service. Should it be possible to debug this
> type
> of project?


Yes,
just make sure that you are using Debug configuration, hit the .svc file
from IE to allow IIS start the working proccess and attach to it from
VS.NET.

Regards,

--
Martin Kulov
http://www.codeattest.com/blogs/martin

MVP, MCT, MCSD.NET Early Achiever

My System SpecsSystem Spec
Old 05-08-2006   #3 (permalink)
Mike Russo


 
 

Re: Debugging a .svc service

Hi Martin,
Thanks for your reply. I noticed that the worker process, aspnet_wp.exe is
already running prior to browsing to my .svc. I can attach VS to it with my
service project loaded but breakpoints still do not work because the debug
symbols have not been loaded. That is what browsing to the .svc
accomplishes. And that is why it's important to do this prior to attaching
to aspnet_wp.exe. Thanks for saving me some head-scratching.
Mike

"Martin Kulov [MVP]" wrote:

> "Mike Russo" <Mike Russo@discussions.microsoft.com> wrote in message
> newsCB5163B-F00D-4192-B290-B08B8F7F122B@microsoft.com...
> >I have a WCF service project that I created in VS2005 with the "WinFX
> >Service
> > Library" template. I can set a breakpoint in its Service.cs file but it
> > doesn't break when the service is used by a client. I have debug="true"
> > in
> > the Web.config file of the service. Should it be possible to debug this
> > type
> > of project?

>
> Yes,
> just make sure that you are using Debug configuration, hit the .svc file
> from IE to allow IIS start the working proccess and attach to it from
> VS.NET.
>
> Regards,
>
> --
> Martin Kulov
> http://www.codeattest.com/blogs/martin
>
> MVP, MCT, MCSD.NET Early Achiever
>
>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
JIT debugging General Discussion
JIT Debugging Software
JIT Debugging Software
JIT Debugging .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