GeoJSON-Net / GeoJSON.Net.Contrib

Repository for all GeoJSON.Net *.Contrib projects
MIT License
36 stars 22 forks source link

Implementation in a docker container. #36

Closed rodriguesmvinicius closed 7 months ago

rodriguesmvinicius commented 3 years ago

Hello,

First of all, congrats for the solution. Is quite complete and well done!

I am trying to deploy my solution using the Net.Contrib into a docker/container environment and I am having a hard time with the SqlServer.Types.

It keeps hitting the " Unable to load shared library 'SqlServerSpatial140.dll' or one of its dependencies" error.

I have tried put the dll in the app folder, in the usr/bin folder. everywhere.

Have you guys faced a scenario like this? Could you share me some wisdom?

Thanks in advance.

xfischer commented 3 years ago

Hi @rodriguesmvinicius, yes it's sometimes a headache.

Did you try, in your top level program, to run the following code ?

SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);

AppDomain.CurrentDomain.BaseDirectory can be any directory where the sql bits files resides.

image