简体   繁体   English

DbGeography.FromText - 无法加载 DLL 'SqlServerSpatial140.dll':找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E)

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

在此处输入图像描述

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.我试图从包文件夹“\packages\Microsoft.SqlServer.Types...\nativeBinaries”中复制 spatial140,在 Visual Studio 中构建成功,没有发现一些错误。

But when run the project, I got that error.但是在运行项目时,我得到了那个错误。

Try adding binding redirects in web.config .尝试在web.config中添加绑定重定向。

<runtime>
 <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.SqlServer.Types" publicKeyToken="89845dcd8080cc91" />
    <bindingRedirect oldVersion="1.0.0.0-11.0.0.0" newVersion="10.0.0.0" />
  </dependentAssembly>
 </assemblyBinding>
</runtime>

I know this is bad, but I have solved the issues, must copy spatial140.dll to bin folder.我知道这很糟糕,但我已经解决了问题,必须将 spatial140.dll 复制到 bin 文件夹。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载DLL&#39;LibFlac&#39;:找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - Unable to load DLL 'LibFlac': The specified module could not be found. (Exception from HRESULT: 0x8007007E) DLLnotfoundexception:无法加载DLL&#39;Pine.dll&#39;:找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - DLLnotfoundexception:Unable to load DLL 'Pine.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 无法加载 DLL 'Microsoft.WITDataStore32.dll':找不到指定的模块。(来自 HRESULT 的异常:0x8007007E) - Unable to load DLL 'Microsoft.WITDataStore32.dll':The specified module could not be found.(Exception from HRESULT:0x8007007E) DllNotFoundException:无法加载DLL&#39;nativrd2.dll&#39;:找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - DllNotFoundException: Unable to load DLL 'nativrd2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) '' 无法加载 DLL 'mfplat.dll':找不到指定的模块。 (HRESULT 异常:0x8007007E)” - '' Unable to load DLL 'mfplat.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" 调试无法加载DLL“ MyDll.dll”:找不到指定的模块。 (来自HRESULT的异常:0x8007007E) - Debugging Unable to load DLL 'MyDll.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) System.DllNotFoundException:'无法加载 DLL'libwkhtmltox':找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E)' - System.DllNotFoundException: 'Unable to load DLL 'libwkhtmltox': The specified module could not be found. (Exception from HRESULT: 0x8007007E)' 无法加载 DLL &#39;System.Data.SQLite.dll&#39;:找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E)对于某些客户 - Unable to load DLL 'System.Data.SQLite.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) for some customers 无法加载 DLL &#39;ABCpdf9-64.dll&#39;。 找不到指定的模块(来自 HRESULT 的异常:0x8007007E) - Unable to load DLL ‘ABCpdf9-64.dll’. The specified module could not be found (Exception from HRESULT: 0x8007007E) C# 错误:无法加载 DLL &#39;AutoItX3.dll&#39;:找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E) - C# error: Unable to load DLL 'AutoItX3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM