无法加载DLL“SqlServerSpatial.dll” [英] Unable to load DLL 'SqlServerSpatial.dll'

查看:2692
本文介绍了无法加载DLL“SqlServerSpatial.dll”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.NET的MVC Web应用程序中引用 System.Data.Spatial 这样我就可以使用 DbGeography 数据类型对某些地理位置的东西的属性。我使用的Visual Studio 2012与.NET 4.5,并且没有在我的开发机器(只的LocalDB)完全安装的SQL Server。

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'm using Visual Studio 2012 with .NET 4.5 and do not have a full installation of SQL Server on my development machine (only localdb).

该应用程序的伟大工程,直到我推到Azure上。只要我的应用程序打我DbGeography属性,它抛出这个错误:无法加载DLLSqlServerSpatial.dll:指定的模块找不到

The app works great until I push it to Azure. As soon as my app hits my DbGeography property, it throws this error: Unable to load DLL 'SqlServerSpatial.dll': The specified module could not be found.

有没有其他人遇到过这个问题?

Has anyone else encountered this issue?

推荐答案

SqlServerSpatial.dll是不受管理的code。你必须在服务器上安装正确的版本(64位)。将DLL添加到您的项目。设置SqlServerSpatial110.dll的属性为复制到输出目录=始终复制

SqlServerSpatial.dll is unmanaged code. You have to install the correct version (64bit) on the server. Add the DLL to your project. Set the properties of SqlServerSpatial110.dll to "Copy to Output directory = Copy always"

您找到详细的信息<一个href="http://alastaira.word$p$pss.com/2011/08/19/spatial-applications-in-windows-azure-redux-including-denali/">here

这篇关于无法加载DLL“SqlServerSpatial.dll”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆