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
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!