LP on .NET

June 9, 2011

WCF Tracing can also be used on the Client

Filed under: .NET,C#,Software Development,WCF — Larry Parker @ 4:42 pm

I helped track down an issue at a customer today where we couldn’t determine if one of the client machines was making any WCF service calls to the server.

So we used the WCF Configuration Editor Tool (SvcConfigEditor.exe) and the WCF Service Trace Viewer Tool (SvcTraceViewer.exe) on the server to check for incoming messages.

This helped us get to the bottom of the problem, but it would have been better if we could have directly done a trace on the client machine to monitor the outgoing messages.

I had used Fiddler for something like this many years ago, but before I threw that into the mix I figured I would check if the WCF tools could be used on the client side.

And they can!  🙂

You simply need to run SvcConfigEditor.exe on the client application’s app.config file and set it up for message logging and / or tracing.  Now after you restart your client app you can run SvcTraceViewer.exe and see the WCF service calls being made from it.

Hope this helps!

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: