Hello,
I’m trying to port a Framework 4.8 App to .Net Core 7. I added the same ThinkGeo NutGet Packages to my solution. The only difference is, that I now use the version 13.1 instead the 13.0 in my Framework App.
When I try to add an ecw or tiff Layer I get the exception: “The type initializer for ‘ThinkGeo.Core.GdalRasterSource’ threw an exception”. And the Stack trace has the following messages:
- TypeInitializationException: The type initializer for ‘ThinkGeo.Core.GdalConfiguration’ threw an exception.
- TypeInitializationException: The type initializer for ‘OSGeo.GDAL.GdalPINVOKE’ threw an exception.
- TypeInitializationException: The type initializer for ‘SWIGExceptionHelper’ threw an exception.
- DllNotFoundException: Unable to load DLL ‘gdal_wrap’ or one of its dependencies: Das angegebene Modul wurde nicht gefunden. (0x8007007E) (dll not found)
When I check the bin folders the Core App has no ‘gdaldata’ folder. And in the folders ‘…\runtimes\win-x86\native\’ or ‘…\runtimes\win-x64\native\’ there are no ‘gdalplugins’ folder an a lot of dll are also missing. (see the picture: left the Framework App – right the Core App.
Any suggestions?
Regards Torsten