title: WCF trace file keeps getting corrupted?
body: <p>I enabled message tracing on a WCF service. it traces a couple of messages and then it stops, when I try to open the trace in TraceViwer it gives me an error on the last message that got logged, or doesn't even open the file duo to different error everytime.</p>
  
  <p>I can't even delete the corrupt file unless i run a resetiis since the file is being used!</p>
  
  <p>here is my trace config.</p>
  
  <pre><code>&lt;system.diagnostics&gt;
          &lt;sources&gt;
              &lt;source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing"&gt;
                  &lt;listeners&gt;
                      &lt;add type="System.Diagnostics.DefaultTraceListener" name="Default"&gt;
                          &lt;filter type="" /&gt;
                      &lt;/add&gt;
                      &lt;add name="ServiceModelMessageLoggingListener"&gt;
                          &lt;filter type="" /&gt;
                      &lt;/add&gt;
                  &lt;/listeners&gt;
              &lt;/source&gt;
          &lt;/sources&gt;
          &lt;sharedListeners&gt;
              &lt;add initializeData="C:\Logs\Web_messages.svclog"
                type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"&gt;
                  &lt;filter type="" /&gt;
              &lt;/add&gt;
          &lt;/sharedListeners&gt;
      &lt;/system.diagnostics&gt;
  
  &lt;system.serviceModel&gt;
      &lt;diagnostics&gt;
          &lt;messageLogging logEntireMessage="true" logMalformedMessages="true"
            logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" /&gt;
      &lt;/diagnostics&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>