Minimal GDAL deployment to Windows Server 2012 R2 development server is not working, causing an APPCRASH event #173
-
I have .net core 8 web api project where I have installed gdal via nuget:
The app is doing some simple coordinate system transformations, and it works as expected when running on my local machine. However, things go bad when i try to deploy to my development server (64-bit Windows Server 2012 R2). To build the project I'm using the command:
Two errors are recorded in Event Viewer, and the App Pool shut downs. Application Error 1:
Application Error 2:
I've tried a couple things that haven't had any discernable impact
Any thoughts on what is going wrong either on the server or with my publish process? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What I would recommend is to try to install GitBash and run ldd (as described here). You need to run it on 'gdal.dll'. I can confirm that it works on Windows Server 2022. However, if you're running a VM - you need to enable AVX/AVX2 processor extensions. Or your target machine should support AVX. Sometimes it requires to cleanup the project and publish it again - ref: #144 There were some issues with VC runtime in previous versions, but the latest one contains them, so it shouldn't require explicit installation and will use the binaries in app working directory. |
Beta Was this translation helpful? Give feedback.
@trippetoe As windows server 2012 is already EOL and not supported I don't see any obvious reasons to investigate it.
Why it doesn't work? I suppose it's missing VCRT v140 version which is shipped with packages. But some files are still coming from system (like ntdll). There can be missing methods and incompatible ABI. And those redistributables are binary compatible with VCRT 2015+.
You have two options: