Search code examples
c#.netvisual-studioentity-frameworkdbgeography

DbGeography.FromText - Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)


enter image description here

I have tried to copy spatial140 from packages folder "\packages\Microsoft.SqlServer.Types...\nativeBinaries", in Visual Studio build is a success, not found some error.

But when run the project, I got that error.


Solution

  • Try to Change the status of spatial140.dll to Copy if newandContent.

    enter image description here