Wednesday, January 19, 2011

WCF End to End tracing sample

An year into the tech and I just found out that WCF now comes with an End to End tracing sample.
Check out the "Extended Tracing" sample here:
http://msdn.microsoft.com/en-us/library/aa354511.aspx

You can run it with setting up IIS as well.

  • Just check out service properties "Specific Port" and set it as 3333.
  • Open App.config and modify the endpoint address to be "http://localhost:3333/service.svc"
  • I recommend you add to the section in web.config http://dotnetmind.blogspot.com/2008/07/step-into-wcf-service.html 
  • Make sure you create the folder  "C:\logs\"
  • Run the sample
  • You should get two new files (you might need to stop the development server)
    • ExtendingTracing-client.svclog
    • ExtendingTracing-service.svclog