What is the exception message specifically?<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br><br><div class="gmail_quote">2012/3/19 Pouliot, Christopher (DNR) <span dir="ltr"><<a href="mailto:Christopher.Pouliot@state.mn.us">Christopher.Pouliot@state.mn.us</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The App I'm using GDAL in is a C# (Visual Studio 2010, .NET 4.0) executable and is distributed to a couple thousand people. For 95% of those people it is running great. For the other 5% we're having trouble with the GDAL piece. The error we get: "The type initialize for 'OSGEO.GDAL.GdalPINVOKE' threw an exception"<br>
<br>
I've narrowed it down and it occurs the very first command I try using GDAL:<br>
<br>
OSGeo.GDAL.Gdal.SetConfigOption("GDAL_DATA", GDAL_DATA);<br>
<br>
I've read in previous threads that it may be related to needing the proper Microsoft Visual C++ Redistributables installed but we've got machines that have 2005, 2008, and 2010 redistributables installed and still no luck. I've also included the msvcp100.dll and msvcr100.dll files in my install package.<br>
<br>
I think we have the problem narrowed down to older machines running XP or Vista. Beyond that I'm not sure.<br>
<br>
Does anyone know of other dependencies I should be trying?<br>
<br>
Thanks,<br>
<br>
Chris<br>
<br>
Chris Pouliot<br>
GIS Application Developer<br>
Minnesota Department of Natural Resources<br>
<a href="mailto:christopher.pouliot@state.mn.us">christopher.pouliot@state.mn.us</a><br>
<a href="tel:%28651%29%20259-5491" value="+16512595491">(651) 259-5491</a><br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br></div>