Unable to load DLL 'SqlServerSpatial.dll'

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

    I was struggling with it for a quite some time, i installed required files, but it still wasn't working.

    Apparently, the project wanted to use x86 SqlServerSpatial.dll So i changed the IIS Express Build to x64 in Tools>Options>WebProjects>Use the 64 bit IIS Here is the screen

    There is no need of adding new nuget packages, just install the SQLSysClrTypes from microsoft page : http://go.microsoft.com/fwlink/?LinkID=188391&clcid=0x409 and it should be fine ;)

    Hope that it helps someone!

    0 讨论(0)
提交回复
热议问题