473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Application cant find dll even when it's in the same directory

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

Jul 21 '05 #1
8 2238
Do you have the .NET distribution files on the other systems?

"JohnnySparkles" <Jo************@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
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

Jul 21 '05 #2
Does the ClientAPI.dll depend on any other dll's? Are they available?

Jul 21 '05 #3
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:
Does the ClientAPI.dll depend on any other dll's? Are they available?

Jul 21 '05 #4
Jim:
I've installed the dotnetfx (.NET Framework 1.1.) but selected the "Runtime"
option I believe.

Hmm, perhaps I'll try the "Developer" or one of the other options. Cheers

"Jim Douglas" wrote:
Do you have the .NET distribution files on the other systems?

"JohnnySparkles" <Jo************@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
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


Jul 21 '05 #5
Sorry, I was thinking about a different install than the .NET Framework 1.1
installer when I was referring to Runtime and developer options..

"JohnnySparkles" wrote:
Jim:
I've installed the dotnetfx (.NET Framework 1.1.) but selected the "Runtime"
option I believe.

Hmm, perhaps I'll try the "Developer" or one of the other options. Cheers

"Jim Douglas" wrote:
Do you have the .NET distribution files on the other systems?

"JohnnySparkles" <Jo************@discussions.microsoft.com> wrote in message
news:CA**********************************@microsof t.com...
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


Jul 21 '05 #6


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

Jul 21 '05 #7
hi JOhnny,
Were you ever able to resolve this issue. I read soemthing about ASPNET
having permission problems on c:\winnt\temp and in spite of having the right
permission my application also fails with the same error.

Can you please let me know if you resolved it?

"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

Jul 21 '05 #8
Hi all,

Yes, I did resolve this problem, I needed to use Dependency Walker (its all
over the net, you should be able to find it with a google) to check that all
of the dll's required by the program were installed. I found that
MSVCR71D.dll wasn't installed (and one of my dll even said it needed
MSJAVA.dll which is very strange considering the code is entirely C++...so I
just stuck it in there anyway). This did the trick.

"Rashmi Jagadish" wrote:
hi JOhnny,
Were you ever able to resolve this issue. I read soemthing about ASPNET
having permission problems on c:\winnt\temp and in spite of having the right
permission my application also fails with the same error.

Can you please let me know if you resolved it?

"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

Jul 21 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Chris | last post by:
I'm trying to get an existing VS.NET project up on my Win2003 server and I get the following error (on the actual website page): "It is an error to use a section registered as...
9
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
15
by: JohnnySparkles | last post by:
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....
7
by: Bolwerk | last post by:
Hello I got a client who uses what appears to be ASP.NET 2.0. I come from a UNIX/PHP/Apache background, and I'm not too familiar with ASP.NET. He had some permissions problem a few weeks ago...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.