Unable to load DLL 'SqlServerSpatial.dll'

前端 未结 7 2108
谎友^
谎友^ 2020-12-01 20:48

I have a .NET MVC web application referencing System.Data.Spatial so I can use the DbGeography datatype on a property for some geolocation stuff. I

7条回答
  •  渐次进展
    2020-12-01 21:50

    SqlServerSpatial.dll is unmanaged code. You have to install the correct version (64bit) on the server. Add the DLL to your project. Set the properties of SqlServerSpatial110.dll to “Copy to Output directory = Copy always”

    You find detailed Information here

提交回复
热议问题