Monday, August 24, 2015

how to trace wcf from client side

the link below describe
https://msdn.microsoft.com/en-us/library/ms732023(v=vs.110).aspx


1- add this section to your web.config file in application consume wcf service.
configuration>
    <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>
    




 <system.web>
      <compilation debug="true" targetFramework="4.5" />
      <httpRuntime targetFramework="4.5" />
        <trace enabled="true"/>
 
    </system.web>

- add this section to your web.config file in application consume wcf service.




No comments:

Post a Comment