title: ASP.NET/WCF tracing does not work within Sharepoint
body: <p>I configured message tracing for my WCF webservice like this:</p>
  
  <pre><code>  &lt;!--TRACING  --&gt;
    &lt;system.diagnostics&gt;
      &lt;sources&gt;
        &lt;source name="System.ServiceModel" switchValue="Verbose, ActivityTracing" propagateActivity="true"&gt;
          &lt;listeners&gt;
            &lt;add name="xml" /&gt;
          &lt;/listeners&gt;
        &lt;/source&gt;
        &lt;source name="System.ServiceModel.MessageLogging" switchValue="Verbose"&gt;
          &lt;listeners&gt;
            &lt;add name="xml" /&gt;
          &lt;/listeners&gt;
        &lt;/source&gt;
      &lt;/sources&gt;
      &lt;sharedListeners&gt;
        &lt;add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="log_messages_verbose.log" /&gt;
      &lt;/sharedListeners&gt;
      &lt;trace autoflush="true" /&gt;
    &lt;/system.diagnostics&gt;
  </code></pre>
  
  <p>This works fine on my development machine, it logs all messages and traces to an xml file.
  Now when deploying the webservice as (sub) Webapplication inside a Sharepoint Webapplication, the service works fine but the trace file stays empty.</p>
  
  <p>I checked the permission on the file, tried absolute file paths, but it still does not work.</p>
  
  <p>Because the webservice is deployed as sub webapplication, it inherits the web.config settings from sharepoint. Could this be an issue? Does sharepoint somehow disable the normal tracing?</p>
  
  <p>Any suggestions are welcome..</p>