Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found

前端 未结 9 2336
谎友^
谎友^ 2021-02-12 13:05

This all new to me, so bear with me...

I\'m working on a Visual Studio project; it\'s a web service that returns some data.

I\'ve just tried to make a particula

相关标签:
9条回答
  • 2021-02-12 13:45

    Copy the dll from C:\Users\<User>\.nuget\packages\Microsoft.SqlServer.Types\14.0.314.76\nativeBinaries\x86 to your project. Right-click the file and click Properties. Set "Copy To Output Directory" to "Copy Always".

    0 讨论(0)
  • 2021-02-12 13:45

    My problem was git related: a fresh clone of solution (kept on TFS) seemed to be broken, although my fellow developers had no problem. In my case "resetting" did the trick:

    • uninstall nuget Microsoft.SqlServer.Types 14.0.314.76
    • clear / rebuild project
    • install nuget Microsoft.SqlServer.Types 14.0.314.76
    • clear / rebuild project
    0 讨论(0)
  • 2021-02-12 13:45

    I fixed this by issuing the following command in the Package Manager Console:

    Update-Package -Reinstall Microsoft.SqlServer.Types
    

    The output included some dire-looking warnings and errors, but in the end it indicated that the package was successfully installed. And the build errors vanished.

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