I've written a WCF Restful service and I have also written a test project to test the service. When my test project tries to make the a call to the wcf Method, it crashes with a 400 bad request error. I cannot see anything wrong with my code so on the WCF project I have enabled tracing via the app.config file, but when I look in the Microsoft Service Trace Viewer it is totally empty. Here's the section thatI have placed in the app.config.
<system.diagnostics>
<sources>
<source propagateActivity="true" name="System.ServiceModel" switchValue="Critical,ActivityTracing">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add name="xml">
<filter type="" />
</add>
</listeners>
</source>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add name="xml">
<filter type="" />
</add>
</listeners>
</source>
<source name="myUserTraceSource" switchValue="Information, ActivityTracing">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add name="xml">
<filter type="" />
</add>
</listeners>
</source>
</sources>
<sharedListeners>
<add initializeData="TraceLog.svclog" type="System.Diagnostics.XmlWriterTraceListener"
name="xml" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp">
<filter type="" />
</add>
</sharedListeners>