Craig McMurtry's WebLog

Announcing the Windows Communication Foundation Live Service Trace Viewer

 

by Craig McMurtry and Vittorio Bertocci

 

Announcing the ...

Windows Communication Foundation

Live Service Trace Viewer  Beta I

 

·         Purpose

·         Design

·         Configuration

·         Use

 

Purpose:

 

Figure 1: The Live Service Trace Viewer

 

 

The Service Trace Viewer provided with the .NET 3.0 SDK allows the operation of Windows Communication Foundation applications to be examined after the fact

 

The Live Service Trace Viewer shows their interaction while it’s happening! 

 

As such, it can serve as a tool for diagnostics and also to make any Windows Communication Foundation demonstration come alive. 

 

A video of the Live Service Trace Viewer in action can be found here.  The Channel 9 interview with Laurence Melliol and Craig is here

 

Design:

Figure 2: Design of the Live Service Trace Viewer

 

The two primary components of the Live Service Trace Viewer are the Live Trace Listener and the Viewer

 

The Live Trace Listener:

Any Windows Communication Foundation application can be configured to use the Live Trace Listener.  The Live Trace Listener interprets Windows Communication Foundation activity and message log traces.  It incorporates a Sender that transmits the interpretations to a designated queue, and a Receiver that raises events as it reads interpretations from the queue. 

 

The Live Service Trace Viewer: 

The Live Service Trace Viewer handles the events raised by the Receiver and displays them in a user interface that incorporates a Windows Presentation Foundation control specially designed for the purpose by IdentityMine

 

This modular design provides for the possibility of using various data sources, such as trace files instead of applications configured to use the Live Trace Listener directly, as well as for creating any number of alternate Viewers. 

 

 

Configuration:

 

 

Figure 3: Configuring a Windows Communication Foundation application to log messages

 

 

 

 

1.      Install the July CTP or RC 1 release of .NET Framework 3.0. 

 

2.      Deploy the Live Service Trace Viewer:

Download and unblock this archive, extract the components, and compile the solution. 

 

3.      Configure applications to use the Live Trace Listener

a.      Reference the LiveTrace.dll assembly in the attached archive (or simply copy the assembly into the same folder as your executables). 

b.      Modify the diagnostics settings in the application’s configuration file.  That can be done automatically.  Simply select the Existing Configuration File item from the Live Service Trace Viewer’s Configure Node menu, shown in figure 3, and point the file dialog box that appears at the application’s configuration file. 

c.       Recompile the application. 

 

 

 

Use:

 

Figure 4: The Live Trace Viewer User Interface

 

Figure 5: Expanded Node View

 

Figure 6: Collapsed Node View

 

Figure 7: Grouping Nodes

 

 

 

As shown in figure 4, to the left, the Live Service Trace Viewer user interface incorporates a Node List, a Connections List, a Detail Panel, and the Viewer.   Two resizing bars are provided for adjusting the relative size of those constituent parts. 

 

The Node List

As services start listening for messages, they appear in the Node List.  Clients appear in the Node List when they first send a message.  Selecting an entry in the Node List causes information about the corresponding service or client’s endpoints to be displayed in the Detail Pane. 

 

The Connection List

When messages are transmitted between two nodes, an entry appears in the Connections List.  Selecting an entry in the Connections List causes the content of the messages transmitted between the two corresponding nodes to be displayed in the Detail Pane. 

 

The Viewer

Double-clicking an entry in the Node List causes the corresponding service or client to be displayed in the Viewer. 

 

Double-clicking items in the Viewer toggles between the expanded view of the item, shown in figure 5, to the left, and the collapsed view, shown in figure 6

 

Individual items in Viewer can be selected by left-clicking on them, and selected items can be dragged to any position. 

 

Multiple items can be selected at once by holding down the Ctrl key while selecting each item.  With multiple items selected the Group Button can be used to group the selected items, as shown in figure 7.  Grouping items together allows one to move them together.   When a group of items are selected, their grouping can be cancelled using the Ungroup Button. 

 

The Viewer can be cleared of contents using the Clear button. 

 

 

Please report any defects or request enhancements to this beta application by e-mailing Craig McMurtry & Vittorio Bertocci.  One known limitation is that this version does not support duplex contracts. 

 

 

 

 

 

 

Published Tuesday, September 19, 2006 2:42 PM by CraigMcMurtry

Comments

 

Christopher Steen said:

Pervasive Tools, a couple more tools [Via: James Avery ] VS 2005 trick for obtaining the public key...
September 19, 2006 11:18 PM
 

Patrizio said:

Craig McMurtry y Vittorio Bertocci acaban de publicar el beta 1 de su Live Service Trace Viewer , una
September 19, 2006 11:22 PM
 

Patrizio said:

The link for the Live Service Trace Viewer in action is broken!
September 19, 2006 11:32 PM
 

Ahmed Salijee said:

Check out this blog entry from Craig Mcmurtry on the Live Service Trace Viewer. This is a WPF app that
September 20, 2006 3:18 AM
 

WCF Guy said:

Yepp... the link doen't work... :-(
September 20, 2006 7:41 AM
 

El Bruno said:

Great Tool !!!
Congratulations, I'll post a reference in my Blog
September 20, 2006 8:28 AM
 

El Bruno said:

Buenas, esta vez estoy alucinado. Mis amigos Gustavo y Martin se acordarán de hace unos años cuando creamos
September 20, 2006 8:34 AM
 

CraigMcMurtry said:

Thanks for pointing out the broken link--fixed now.  
September 20, 2006 9:25 AM
 

TSchissler said:

It seems the tool doen't work when you dont have installed MSMQ?
September 21, 2006 3:03 AM
 

Steven Livingstone said:

Sorry to be a pain, but i have tried the samples on two different machines, exactly as you do in the video (i watched both videos) and neither produce anything in the trace viewer.

Beyond download and comiling your samples, do i have to do anything else? I have RC1.

Look very cool.. just need to get it working as it could help me right now.
September 21, 2006 3:09 AM
 

stevenR2 said:

Well, i saw the private$ stuff which looked awfully like an MSMQ queue, but it isn't mentioned anywhere and i can't think why it would be needed as such.
September 21, 2006 7:10 AM
 

Patrizio said:

Same problem here, I tried to run over some WCF applications I made but no nodes in the viewer. I had no time to do a deeper research about the cause of the problem but I will retry tonight.
September 21, 2006 10:33 AM
 

Jesus Rodriguez's WebLog said:

If you are trying to do real time monitoring in WCF check out Live Trace Viewer. Craig Mcmurtry and Vittorio
September 21, 2006 11:09 PM
 

.NET a 2.860 m de altura said:

Si quieres ver como los mensajes fluyen durante la ejecución de tu aplicación escrita con
September 22, 2006 1:20 PM
 

Dah said:

I installed MSMQ, it still can't get to work..
September 25, 2006 2:36 AM
 

Softwaremaker said:

Some people are still questioning my thoughts about what's so good about GUI, WCF and such. Take a look
September 25, 2006 9:22 PM
 

El Bruno said:

Buenas, esta vez estoy alucinado. Mis amigos Gustavo y Martin se acordarán de hace unos años
September 30, 2006 8:36 AM
 

FranL said:

Very interesting. I have made a new section about WCF Tools (http://www.netfxguide.com/guide/wcf_tools.aspx) in NetFXGuide.com and yours is taking full place at the moment. There is a form on the page to post new resources if you like.

Best,

Francesco

October 4, 2006 6:19 AM
 

Jan Schuster said:

Thank you!!!

Very nice, but it works only on systems with en-US culture. The problem are the hard coded consts in LiveTraceListener.cs. System.Thead.CurrentThread.CurrentCulture solve this problem.

Best Jan

October 5, 2006 7:14 AM
 

Chad Brooks Web Log said:

Craig McMurtry and Vitorrio Bertocci just came out with a new tool that allows you to examine web services

October 16, 2006 3:44 PM
 

Mike Taulty's Blog said:

I used Craig's service tracing tool for the first time today and I have to say that it looks pretty cool...

October 26, 2006 2:16 PM
 

r o b s  r e c y c l e d  b i t s said:

December 12, 2006 6:33 PM
 

jamescon's WebLog said:

Today we released an updated version of the DinnerNow sample on CodePlex. The new version includes several

February 20, 2007 11:17 AM
 

Johnny Halife said:

Today we've released an updated version of DinnerNow , it's the v1.2. Most of the fixes and improvements

February 21, 2007 12:20 AM
 

Solution Architecture said:

Today we've released an updated version of DinnerNow, it's the v1.2. Most of the fixes and improvements...

February 21, 2007 12:21 AM
 

Kavitak's WebLog said:

An updated version of Dinner Now is now available - (version 1.2) http://www.CodePlex.com/DinnerNow The

February 21, 2007 12:33 AM
 

Eric Nelson - Development for .NET Framework 3.0 for ISVs said:

DinnerNow is an application I expect to be spending a fair bit of time mulling over in March as I will

February 21, 2007 8:23 AM
 

Scott Hanselman's Computer Zen - Hanselminutes Podcast 52 - End to End Tracing said:

February 22, 2007 3:00 PM
 

Chris Bowen's Blog said:

Two more stops made and one more to go on the first tour of Bob & Chris' MSDN Roadshow! Portland,

March 18, 2007 10:43 AM
 

Juanlu, El Guerre said:

Muy buenas de nuevo, siento haber estado desaparecido una temporada, pero como mi madre dice "En

January 28, 2008 7:24 AM
 

JuanLu, El Guerre said:

Muy buenas de nuevo, siento haber estado desaparecido una temporada, pero como mi madre dice "En

January 28, 2008 7:25 AM
 

WCF - WcfServiceHost, WcfTestClient, SvcConfigEditor y SvcTraceViewer. « El Guerre said:

January 28, 2008 7:28 AM
 

I Love C# said:

לגמרי במקרה נתקלתי בכלי הזה והוא גדול.... אני ממליץ בחום להוריד ולבדוק אותו. לאתר , לסרט .

May 5, 2008 3:45 PM
 

Inrie(洪晓军) said:

1.ManagedServicesEngine(MSE)http://www.codeplex.com/servicesengine

2.WCFLiveServiceTraceVi...

June 3, 2008 12:44 PM
 

windows live viewer said:

July 1, 2008 9:13 AM
New Comments to this post are disabled

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker