无法为.NET framework 4.0加载.dll [英] Cannot load .dll for .NET framework 4.0

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

问题描述

大家好

我正在使用visual studio创建Windows应用程序。构建x86,Target framework 4.5

并添加引用Foxit.PDF.40.x86.dll。这可以在客户端x86,x64(windows10,windows7)上运行

但是有些客户端无法运行此应用程序。错误

Capture.JPG - Google云端硬盘 [< a href =https://drive.google.com/file/d/1lHqoH3WK9s4WlNj8_Cmp0VoboSKarv2C/view?usp=sharingtarget =_ blanktitle =New Window> ^ ]

任何人都可以建议我解决这个错误吗?

非常感谢。



我尝试了什么:



Hello everyone
I'm create the windows application using visual studio. Build x86,Target framework 4.5
and add reference Foxit.PDF.40.x86.dll. This can run on clients x86,x64 (windows10,windows7 as well)
But some clients cannot run this app. error with
Capture.JPG - Google Drive[^]
Can anyone suggest me fix this error?
Thank you very much.

What I have tried:

Build x86,Target framework 4.5,4.0




Install dll by regsvr32 in system32,sysWow64

推荐答案

查看错误消息:指定的模块不能找到



系统上尚未安装Foxit PDF Viewer 4.0x86.dll。 64位版本可能有,但不是x86。



最有可能的原因是:您需要一个安装程序来确保所有必需的程序集都安装在代码运行前的目标。
Look at the error message: "The specified module could not be found"

The "Foxit PDF Viewer 4.0x86.dll" has not been installed on that system. It's possible that the 64 bit version has, but not the x86.

Most likely reason: you need an installation program to ensure that all the required assemblies are installed on the target before your code runs.


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

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