title: .Net Mixed code - <Module>..ctor called failfast
body: <p>I maintain a mixed code dll (c# and c++ managed an unmanaged).
  It works well on many platforms.</p>
  
  <p>I started seeing the following stack trace in the application event-viewer:</p>
  
  <pre><code>at System.Environment.FailFast(System.String)
  at &lt;Module&gt;.()
  at &lt;Module&gt;..cctor()
  </code></pre>
  
  <p>When decompiling the dll, the  is huge with a lot of static functions and variables, but I can't find cctor.
  I can't seem to find any helpful information.
  Please help.</p>