title: How to solve Windows Azure Diagnostic Runtime Error (Could not create WindowsAzure.Diagnostics, Version=xx, Culture=neutral, PublicKeyToken=xx
body: <pre><code>privateLibManager libManager;
  private LibManager Connect()
  {
     this.libManager=new LibManager();//here we are getting an error
  }
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <p>The type initializer for 'SWConfigDataClientLib.LibManager' threw an exception</p>
  
  <p><strong>Inner Exception:</strong></p>
  
  <p>Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,     Microsoft.WindowsAzure.Diagnostics,Version=2.2.0.0,Culture=neutral,
      PublicKeyToken=31bf3856ad364e35.</p>
  
  <p><strong>Source</strong></p>
  
  <p>IpPbxCDSClientLib</p>