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

前端 未结 9 2363
谎友^
谎友^ 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:37

    For those who are seeing a very similar set of errors, something like:

    Could not copy the file "…\SqlServerTypes\x64\SqlServerSpatial140.dll" because it was not found

    If you installed Microsoft.SqlServer.Types via NuGet and your application works locally but you get errors when building via Azure DevOps then you simply need to add the dlls to source control. As @Pure.Krome noted, these dlls exist locally at:

    However, notice that by default these dlls are ignored (red icon at left). Right-click the ignored dlls and select Add Ignored File to Source Control… then commit and push your changes, then queue a new build! Note: Your solution may contain several projects, and each may have their own SqlServerTypes folder.

提交回复
热议问题