title: The type initializer for 'OSGeo.OSR.OsrPINVOKE' threw an exception
body: <p>I'm trying to create a CoordinateTransformation to transform the SRS of a shapefile. However, on attempting to create one with the following method call:</p>
  
  <pre><code>var sourceSrs = new SpatialReference(Osr.SRS_WKT_WGS84);
  </code></pre>
  
  <p>I get the exception:</p>
  
  <blockquote>
    <p>The type initializer for 'OSGeo.OSR.OsrPINVOKE' threw an exception.</p>
  </blockquote>
  
  <p>The detailed exception looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/NHB2Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NHB2Q.png" alt="Exception"></a></p>
  
  <p>Can anyone help?</p>