469,609 Members | 1,115 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

How do I debug a WCF Web Service running in IIS

I am trying to attach to a WCF Web Service running in virtual directory in
my local dev box, but not sure how to do it. I tried setting a breakpoint on
the .svc and attaching to the Inetinfo process, but it doesn't break. I am
getting a SQL connection error, but the message is rather vague. The
web.config connecton string looks fine.
Jan 26 '08 #1
2 11795
Bill,

Have you seen these threads that are returned from google? They might
be of some use (I'm not sure what version of IIS you are running, so some
things are applicable, some might not be):

http://forums.microsoft.com/MSDN/Sho...01010&SiteID=1

http://dotnet.org.za/willy/archive/2...-services.aspx

You might have the best luck by creating a console host which uses your
service library and just debugging that, but of course, it will run under a
different user, which, if I had to guess in this case, is the issue in
connecting to your SQL Server.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bill Fuller" <so*****@nospam.comwrote in message
news:up**************@TK2MSFTNGP04.phx.gbl...
>I am trying to attach to a WCF Web Service running in virtual directory in
my local dev box, but not sure how to do it. I tried setting a breakpoint
on the .svc and attaching to the Inetinfo process, but it doesn't break. I
am getting a SQL connection error, but the message is rather vague. The
web.config connecton string looks fine.
Jan 26 '08 #2
These can help:

<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
>
<listeners>
<add name="sdt"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData= "c:\wutemp\Host1.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>
That'll at least give you the things to google to set it up.

You can setup a HOST and a CLIENT version(entry in app.config or web.config)
as well.

You'll also want to famaliarize yourself with this program:

"C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\SvcTraceViewer.exe"
Google
SvcTraceViewer
and that'll get you on the right path as well.


"Bill Fuller" <so*****@nospam.comwrote in message
news:up**************@TK2MSFTNGP04.phx.gbl...
>I am trying to attach to a WCF Web Service running in virtual directory in
my local dev box, but not sure how to do it. I tried setting a breakpoint
on the .svc and attaching to the Inetinfo process, but it doesn't break. I
am getting a SQL connection error, but the message is rather vague. The
web.config connecton string looks fine.

Jan 28 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by νϺ | last post: by
5 posts views Thread by SiD` | last post: by
4 posts views Thread by Rob R. Ainscough | last post: by
5 posts views Thread by greg.merideth | last post: by
7 posts views Thread by Sunil Varma | last post: by
3 posts views Thread by Alan Silver | last post: by
5 posts views Thread by Jeff | last post: by
2 posts views Thread by steven | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.