title: Not able to run SWIG C# examples in VS 2010
body: <p>I am trying to get SWIG to work with Visual Studio and C#. </p>
  
  <p>I downloaded <a href="http://prdownloads.sourceforge.net/swig/swigwin-2.0.4.zip" rel="nofollow">swigwin-2.0.4.zip</a> and converted the project to a VS 2010 project.</p>
  
  <p>I am able to build the 'class' example. When I then try to run compiled build I get the error</p>
  
  <pre><code>    The type initializer for 'examplePINVOKE' threw an exception.
  </code></pre>
  
  <p>I haved googled the error, but have not found any suggestions  on how to resolve it.</p>
  
  <p>Hope somebody is able to help!</p>
  
  <p>Thanks,</p>
  
  <p>Christian</p>