<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>My apologies; I'm guessing this is well trod ground, but I couldn't find a good search for the archives and, on inspection, I couldn't find an appropriate topic.</div><div><br></div><div>I'm trying to build one of the GDAL swig c# examples, specifically I have tried both OGRGEOS and ORSTransform. I've installed <a href="http://GDAL.NET">GDAL.NET</a> 2.3.1 from nuget (<a href="https://www.nuget.org/packages/GDAL.NET/">https://www.nuget.org/packages/GDAL.NET/</a>). My projects build but both throw System.TypeInitializationException at runtime. <br></div><div><br></div><div>For OGRGEOS, the error is</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Exception thrown: 'System.TypeInitializationException' in ogr_csharp.dll<br>An unhandled exception of type 'System.TypeInitializationException' occurred in ogr_csharp.dll<br>The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception.<br><br>The program '[34872] dotnet.exe' has exited with code -1073741510 (0xc000013a).<br></blockquote><div><br></div><div>I'm guessing that I either have a configuration issue or a dependency issue with the underlying native code, but, at this point, I'm just guessing.</div><div><br></div><div>Any help would be appreciated,</div><div><br></div><div>Scott<br></div><br></div></div></div></div></div>