即使它位于同一目录中,应用程序也无法找到DLL [英] Application cant find dll even when it's in the same directory

查看:64
本文介绍了即使它位于同一目录中,应用程序也无法找到DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在开发一个应用程序,它为某些类使用了一个dll。


我构建应用程序和dll,它在任何机器上运行良好,并且安装了

Visual Studio .NET。一旦你拿到应用程序和dll

并将它们放在没有Visual Studio .NET的机器上,应用程序会抛出

以下错误:


未处理的异常:System.IO.FileNotFoundException:文件或程序集名称

Clie

ntAPI,或其中一个依赖项,未找到。

文件名:" ClientAPI"

at main()


===预绑定状态信息===

日期:DisplayName = ClientAPI,版本= 1.0.1992.20855,文化=中性,

PublicKey

令牌= null

(完全-specified)

日志:Appbase = C:\Documents and Settings \ jwieland \Desktop \Signal Testing \

日志:初始PrivatePath = NULL

调用程序集:TestBed,Version = 1.0.1992.20856,Culture = neutral,

PublicKeyTo

ken = null。

===


日期:政策目前尚未应用于参考(私人,定制,

partia

l,或基于位置的程序集绑定)。

日志:政策后参考:ClientAPI,版本= 1.0.1992.20855,

文化=中性,

PublicKeyToken = null

日志:尝试下载新的URL文件:/// C:/ Documents和

设置/ jwieland / $

esktop /信号测试/ ClientAPI.DLL。


应用程序是TestBed.exe,dll是ClientAPI.dll,两者都是

放在同一目录中。任何人的想法?


干杯

John

Hi All,

I''m working on an application which uses a dll for some of its classes.

I build the application and the dll and it runs fine on any machine with
Visual Studio .NET installed on it. Once you take the application and the dll
and place them on a machine without Visual Studio .NET the application throws
the following error:

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name
Clie
ntAPI, or one of its dependencies, was not found.
File name: "ClientAPI"
at main()

=== Pre-bind state information ===
LOG: DisplayName = ClientAPI, Version=1.0.1992.20855, Culture=neutral,
PublicKey
Token=null
(Fully-specified)
LOG: Appbase = C:\Documents and Settings\jwieland\Desktop\Signal Testing\
LOG: Initial PrivatePath = NULL
Calling assembly : TestBed, Version=1.0.1992.20856, Culture=neutral,
PublicKeyTo
ken=null.
===

LOG: Policy not being applied to reference at this time (private, custom,
partia
l, or location-based assembly bind).
LOG: Post-policy reference: ClientAPI, Version=1.0.1992.20855,
Culture=neutral,
PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Documents and
Settings/jwieland/D
esktop/Signal Testing/ClientAPI.DLL.

The application is TestBed.exe and the dll is ClientAPI.dll and both are
placed in the same directory. Any ideas anyone?

Cheers
John

推荐答案

你在其他系统上有.NET发行文件吗?


" JohnnySparkles" <乔************ @ discussions.microsoft.com>在消息中写道

新闻:CA ********************************** @ microsof t.com ...
Do you have the .NET distribution files on the other systems?

"JohnnySparkles" <Jo************@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
大家好,

我正在开发一个应用程序,它为某些类使用了一个dll。
我构建了应用程序和dll,它在任何安装了Visual Studio .NET的计算机上运行良好。一旦你拿到应用程序和
dll并将它们放在没有Visual Studio .NET的机器上,应用程序
就会抛出以下错误:

未处理的异常:System.IO.FileNotFoundException :文件或程序集
名称Clie
ntAPI或其中一个依赖项未找到。
文件名:ClientAPI
at main()

===预绑定状态信息===
LOG:DisplayName = ClientAPI,Version = 1.0.1992.20855,Culture = neutral,
PublicKey
令牌= null
(完全指定)
LOG:Appbase = C:\Documents and Settings \jwieland\Desktop \Signal Testing \
LOG:Initial PrivatePath = NULL
调用程序集:TestBed ,Version = 1.0.1992.20856,Culture = neutral,
PublicKeyTo
ken = null。
===

日志:此时政策未申请参考(私有,定制,
partia
l,或基于位置的程序集绑定)。
日志:后策略参考:ClientAPI,Versio n = 1.0.1992.20855,
Culture = neutral,
PublicKeyToken = null
日志:尝试下载新的URL文件:/// C:/ Documents和
设置/ jwieland / D
esktop /信号测试/ ClientAPI.DLL。

应用程序是TestBed.exe,dll是ClientAPI.dll,两者都放在同一目录下。任何人的想法?

干杯
John
Hi All,

I''m working on an application which uses a dll for some of its classes.

I build the application and the dll and it runs fine on any machine with
Visual Studio .NET installed on it. Once you take the application and the dll and place them on a machine without Visual Studio .NET the application throws the following error:

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name Clie
ntAPI, or one of its dependencies, was not found.
File name: "ClientAPI"
at main()

=== Pre-bind state information ===
LOG: DisplayName = ClientAPI, Version=1.0.1992.20855, Culture=neutral,
PublicKey
Token=null
(Fully-specified)
LOG: Appbase = C:\Documents and Settings\jwieland\Desktop\Signal Testing\
LOG: Initial PrivatePath = NULL
Calling assembly : TestBed, Version=1.0.1992.20856, Culture=neutral,
PublicKeyTo
ken=null.
===

LOG: Policy not being applied to reference at this time (private, custom,
partia
l, or location-based assembly bind).
LOG: Post-policy reference: ClientAPI, Version=1.0.1992.20855,
Culture=neutral,
PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Documents and
Settings/jwieland/D
esktop/Signal Testing/ClientAPI.DLL.

The application is TestBed.exe and the dll is ClientAPI.dll and both are
placed in the same directory. Any ideas anyone?

Cheers
John



ClientAPI.dll是否依赖于任何其他dll'' ?它们是否可用?

Does the ClientAPI.dll depend on any other dll''s? Are they available?


Chris:

ClientAPI.dll依赖于作为
相同的解决方案。这些也出现在同一个目录中,我已经建立/重建了
多次,以确保它们是同一版本

config。


" Chris Dunaway"写道:
Chris:
The ClientAPI.dll does depend on other libraries which are built as part of
the same solution. Those are also present in the same directory and I''ve
built/rebuilt a number of times to make sure they are of the same release
config.

"Chris Dunaway" wrote:
ClientAPI.dll是否依赖于任何其他dll?它们是否可用?
Does the ClientAPI.dll depend on any other dll''s? Are they available?



这篇关于即使它位于同一目录中,应用程序也无法找到DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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