Hi, Make sure all the dependent dll-s like ogr_wrap.dll, gdal19.dll proj.dll ... are available in the appllication directory or the location added in the PATH environment variable.
Best regards, Tamas 2013/4/5 Casper Børgesen (CABO) <[email protected]> > I am experiencing some problems with C# and GDAL/OGR.**** > > I have a program where I just initialize GDAL/OGR with this command:**** > > ** ** > > OSGeo.OGR.Ogr.AllRegister();**** > > ** ** > > // Here follows some IO and data processing, and its working just fine. > **** > > ** ** > > Now I add a simple line to my program:**** > > ** ** > > OSGeo.OGR.Ogr.AllRegister();**** > > var a = OSGeo.OGR.Ogr.OGRERR_NONE**** > > ** ** > > // Here follows some IO and data processing, and it used to be working. > **** > > ** ** > > The type initializer for 'OSGeo.OGR.Ogr' threw an exception.**** > > …The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception.**** > > …… The type initializer for 'SWIGExceptionHelper' threw an exception.**** > > ……… Unable to load DLL 'ogr_wrap': The specified module could not be > found. (Exception from HRESULT: 0x8007007E)**** > > ** ** > > Can anyone push me in the right direction so I can determine why using > Ogr.OGRERR_NONE would break my program?**** > > ** ** > > Regards Casper**** > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
