http://msdn.microsoft.com/en-us/library/ms732023.aspx

Insert into web.config in configuration tag :

 

<system.diagnostics>
    <trace autoflush="true" />
    <sources>
            <source name="System.ServiceModel" 
                    switchValue="Information, ActivityTracing"
                    propagateActivity="true">
            <listeners>
               <add name="sdt" 
                   type="System.Diagnostics.XmlWriterTraceListener" 
                   initializeData= "SdrConfigExample.e2e" />
            </listeners>
         </source>
    </sources>
</system.diagnostics>


Open the log file : SdrConfigExample.e2e through SvcTraceViewer :

You can see the errors colored with red

image

You can see the Stack Trace drilling down to error line .

image

If you double click any Activity , you can see the sequence diagram of the action in the Graph tab. Can get details on every step on the way .

image