Unable to load DLL 'SqlServerSpatial.dll'

前端 未结 7 2114
谎友^
谎友^ 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:28

    • SqlGeometry and SqlGeography types can be used in VS projects (e.g. C#) by referencing the Microsoft.SqlServer.Types.dll.
    • Microsoft.SqlServer.Types.dll is a managed library and has some unmanaged library as prerequisites and they are like SqlServerSpatialXXX.dll and msvcrXXX.dll
    • Since Sql Server 2008, different versions of Microsoft.SqlServer.Types.dll are available, however, I don't see any functionality change from 2012 on.

    For a detailed solution you may want to see my answer on another similar post.

提交回复
热议问题