[英]SqlServerSpatial110.dll failed to copy on Windows Azure deployment
I have an exsting which is deployed on Windows Azure. 我有一个部署在Windows Azure上的扩展。 But the deployment has been failed with following error.
但是部署失败,并出现以下错误。 How to fix his
如何修复他的
Copying file SqlServerTypes\x64\SqlServerSpatial110.dll to C:\DWASFiles\Sites\<project>\Temp\b3d105f6-8fd0-4093-9957-8174422abded\SqlServerTypes\x64\SqlServerSpatial110.dll failed. Could not find file 'SqlServerTypes\x64\SqlServerSpatial110.dll'.
How do I fix this issue? 如何解决此问题?
I had this problem recently and found this blog post that solved it for me: http://blogs.msdn.com/b/adonet/archive/2013/12/09/microsoft-sqlserver-types-nuget-package-spatial-on-azure.aspx 我最近遇到了这个问题,并找到了这篇博客文章为我解决了这个问题: http : //blogs.msdn.com/b/adonet/archive/2013/12/09/microsoft-sqlserver-types-nuget-package-spatial- on-azure.aspx
Effectively the solution is to add a NuGet package called Microsoft.SqlServer.Types
to your project. 有效的解决方案是向您的项目添加一个名为
Microsoft.SqlServer.Types
的NuGet包。 This package comes with a readme that explains what you need to do and it's very straightforward. 该程序包附带一个自述文件,该文件说明了您需要做什么,并且非常简单。
Installing NuGet package Microsoft.SqlServer.Types
solved the problem. 安装NuGet包
Microsoft.SqlServer.Types
可解决此问题。 But remember also to add this line before calling any spatial operation: 但是请记住在调用任何空间操作之前也要添加以下行:
SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
This is explained inside readme.htm
after installing NuGet package. 安装NuGet软件包后,将在
readme.htm
对此进行解释。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.