Re: Application cant find dll even when it's in the same directory
- From: "jabailo@xxxxxxxxxx" <jabailo@xxxxxxxxxx>
- Date: Wed, 15 Jun 2005 22:26:04 -0700
My experience was when deploying an exe that called a dll that called a second dll, the second .dll could not be found, even in the same directory.
I tried putting them in the GAC but the 2nd dll would still not be found.
My solution:
Put the dlls in the /winnt/system32 directory.
Then, bingo, it got found.
Think you're out of dll-hell?
Think again, dotnetters!
JohnnySparkles wrote:
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
.
- References:
- Application cant find dll even when it's in the same directory
- From: JohnnySparkles
- Application cant find dll even when it's in the same directory
- Prev by Date: Re: Help getting started with a .NET app that runs in a browser.
- Next by Date: Re: Find in Files
- Previous by thread: Re: Application cant find dll even when it's in the same directory
- Next by thread: RE: Application cant find dll even when it's in the same directory
- Index(es):
Relevant Pages
|