Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**"

  在项目中使用C#代码调用C++ DLL时。常常会出现这个问题:在开发者自己的电脑上运行没有问题,但是部署到客户电脑上时会出现下面问题:

Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**":找不到指定的模块

  出现这个问题的原因:一般是该客户电脑上缺少该DLL的依赖项。一般来说比较常见的缺少项是msvcr1200.dll msvcp1200.dll。具体缺少什么,需要使用Dependency Walker查看。Dependency Walker官网

  特别要注意的是64位和32位的问题。64位dll缺少的msvcr1200.dll应该从C:\Windows\System32找到,拷贝到dll目录下。32位dll缺少的msvcr1200.dll要从C:\Windows\SysWOW64拷贝。

时间: 2024-08-06 03:49:31

Unhandled Exception:System.DllNotFoundException: Unable to load DLL"**"的相关文章

System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.

netcore 使用System.Drawing 出现如下错误: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Gdip' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.

System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies .NET Core 图片操作在 Linux/Docker 下的坑

#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 RUN echo "deb ht

[ASP.NET 5]终于解决:Unable to load DLL 'api-ms-win-core-localization-obsolete-l1-2-0.dll'

11月12日,惊喜地发现SqlClient(System.Data.SqlClient.dll)跨平台了(对应的nuget包包是runtime.unix.System.Data.SqlClient),终于可以在Linux上基于.NET Core运行ASP.NET 5程序访问SQL Server数据库了. 于是,立马更新dnx至rc2,用之前已经写好的.用EF7访问SQL Server数据库的ASP.NET 5示例程序,分别在2台Linux服务器上进行测试.但测试时遇到了一个非常奇怪的问题:其中1

unity, Unhandled Exception: System.UnauthorizedAccessException: Access to the path "xxx\Temp\Assembly-CSharp-Editor.dll.mdb" is denied.

Unhandled Exception: System.UnauthorizedAccessException: Access to the path "xxx\Temp\Assembly-CSharp-Editor.dll.mdb" is denied. 在windows上用unity出现上面错误,解法是关掉unity和monodeveloper,然后以管理员身份重新打开unity.

解决 Unable to load DLL 'OraOps9.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)

这个问题网上的答案是把oracle的home文件夹权限变为完全控制,然而并没有好用,还有一种方法是在编写的程序的config文件加入 <runtime> <legacyCorruptedStateExceptionsPolicy enabled="true"/> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly>

Unable to load DLL "libzmq";不能够加载“libzmq”

Unable to load DLL "libzmq" Local,you can read the follow word PS, I found the solution to solve my error. When downloading ZeroMQ from NuGet in VS, there is actually a warning that I ignored at first. It says to manually copy libzmq.dll to outp

[转]System.DllNotFoundException: 无法加载 DLL“*.dll”: 内存位置访问无效。 (异常来自 HRESULT:0x800703E6)

我在使用地税发票控件进行开票的测试的时候,在xp上测试时正常的,在别人的win7系统测试也是正常,但我在我本机确不正常.我本机装的是msdn版本win7系统,这个系统比较原装. 错误信息如下: 2012-07-21 06:30:08,546 [1] ERROR - ThreadException caught System.DllNotFoundException: 无法加载 DLL"GdltaxIA.dll": 内存位置访问无效. (异常来自 HRESULT:0x800703E6).

Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError: Unable to load library &#39;dll.msvcrt&#39;

上网找了一下方法,说是jdk64的问题,也有说是路径不对问题. 代码片段 1 public interface CLibrary extends Library { 2 CLibrary INSTANCE = (CLibrary) Native.loadLibrary("dll.msvcrt", 3 CLibrary.class); 4 void printf(String format, Object... args); 5 } 在看到以下文章之后,觉得loadLibrary()加载

启动tomcat后struts框架报异常严重: Exception starting filter struts2 Unable to load configuration.

启动tomcat后struts框架报异常严重: Exception starting filter struts2 Unable to load configuration. 出现此异常是因为,struts.xml定义的版本和 struts2-core-2.1.6.jar里面的struts-default.xml版本不一致!! struts-default.xml文件里面定义的<!DOCTYPE ...>如下: <!DOCTYPE struts PUBLIC "-//Apach