title: Config file with NServiceBus and WCF is failing
body: <p>I cant figure out whats wrong with my config code below, when I include the NServiceBus config info I get the followng error:</p>
  
  <p>The Type Initializer for 'System.ServiceModel.Diagnostics.TraceUtility' threw an exception'</p>
  
  <p>The message goes away when I comment out the NServiceBus code so its not related to a faulted instal of the .net framework like some of the interwebs suggested.</p>
  
  <p>Any ideas would be appreciated!</p>
  
  <p>The error is caused when my code gets to the constructor for WebClient belowfollowing point:</p>
  
  <pre><code>WEBCallback = new CFPWebImplementation();
  WEBContext = new InstanceContext(WEBCallback);
  WEBClient = new TradeOperationsClient(WEBContext);
  </code></pre>
  
  <p>and my config file:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;netTcpBinding&gt;
          &lt;binding name="NetTcpBinding_ITradeOperations" closeTimeout="00:01:00"
              openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
              transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
              hostNameComparisonMode="StrongWildcard" listenBacklog="10"
              maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
              maxReceivedMessageSize="65536"&gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
            &lt;reliableSession ordered="true" inactivityTimeout="00:10:00"
                enabled="false" /&gt;
            &lt;security mode="None"&gt;
              &lt;transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /&gt;
              &lt;message clientCredentialType="Windows" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/netTcpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="net.tcp://localhost:8687/TradePortal/Operations/"
            binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ITradeOperations"
            contract="CFP_Web.ITradeOperations" name="NetTcpBinding_ITradeOperations" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  
  
  
    &lt;configSections&gt;
      &lt;section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NServiceBus.Core"/&gt;
      &lt;section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core"/&gt;
    &lt;/configSections&gt;
    &lt;MsmqTransportConfig InputQueue="HammersmithInputQueue" ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5"/&gt;
  
    &lt;UnicastBusConfig&gt;
      &lt;MessageEndpointMappings&gt;
        &lt;add Messages="Messages" Endpoint="BBRGInputQueue"/&gt;
      &lt;/MessageEndpointMappings&gt;
    &lt;/UnicastBusConfig&gt;
     &lt;startup&gt;&lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/&gt;&lt;/startup&gt;&lt;/configuration&gt;
  </code></pre>