473,387 Members | 1,890 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,387 software developers and data experts.

One of its dependencies is missing! Help!

AppDomain appDomain = AppDomain.CreateDomain("appDomain", null, null);
try
{
appDomain.Load(@"FF-DeliousDateTimeRequestor.dll");
}
finally
{
AppDomain.Unload(appDomain);
}

Does anyone know why im getting this exception?

"File or assembly name FF-DeliousDateTimeRequestor.dll, or one of its
dependencies, was not found."

While i have placed that DLL in all folders of that project to be sure but
still its still showing that exception. Thank You so much in advance! Badly
needed for my thesis.

Jan 27 '06 #1
1 1673
Hi Rain,
the string passed to the Load method should be the name of the assembly,
not the path or filename so remove the .dll extension from the name, that
might be your issue.

If not looking at the documentation for Assembly.Load gives the following
note, which may be related to your problem:

"An attempt to call AppDomain.Load on an application domain that is not the
current application domain will result in a successful load of the assembly
in the target application domain. Since Assembly objects are not
MarshalByRef, when the method attempts to return the Assembly object for the
loaded assembly to the current application domain (i.e., the callers
application domain), the runtime will try to load the specified assembly into
the current application domain. The load may fail if the configuration
settings (such as AppDomainSetup.ApplicationBase) for the two application
domains are different. Even when the loading into the current application
domain succeeds, the Assembly object that is loaded into the current
application domain is different from the assembly that was loaded into the
target application domain."
Mark.

"Rain" wrote:
AppDomain appDomain = AppDomain.CreateDomain("appDomain", null, null);
try
{
appDomain.Load(@"FF-DeliousDateTimeRequestor.dll");
}
finally
{
AppDomain.Unload(appDomain);
}

Does anyone know why im getting this exception?

"File or assembly name FF-DeliousDateTimeRequestor.dll, or one of its
dependencies, was not found."

While i have placed that DLL in all folders of that project to be sure but
still its still showing that exception. Thank You so much in advance! Badly
needed for my thesis.

Jan 27 '06 #2

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

Similar topics

2
by: Antony | last post by:
Hi, Is there a way to check what the dependencies of an assembly are, apart from loading with ILDASM and checking the manifest information? I keep getting TypeLoadException problems in one of...
3
by: Bruce Wilhelm | last post by:
I have a VS2003 solution with 4 projects in it. I am trying to set up the dependencies in the dialog box, but after I close the dialog the dependencies do not change. Is there something that I am...
0
by: Lennart Jonsson | last post by:
Hi, I'm using db2 udb linux v7.2 fixpak 9 and came across a problem. I didnt find it in any apar nor mentioned in this newsgroup, so I'm curios if anyone else experienced it, and how they solved...
1
by: Scott Hamlin | last post by:
I am receiving an error while trying to use Crystal Reports with .NET, which I have pasted below. The main problem is this message: File or assembly name CrystalDecisions.CrystalReports.Engine,...
0
by: Nick Zdunic | last post by:
When creating a Web Setup Project in VS 2005 and adding the project output from a web project, it doesn't appear that the dependencies are being added. The folder is blank when there should be...
7
by: barias | last post by:
Although circular dependencies are something developers should normally avoid, unfortunately they are very easy to create accidentally between classes in a VS project (i.e. circular compile-time...
8
by: Scott Sauyet | last post by:
I found myself needing to find my way recursively through a document in XSLT, finding the dependencies one element had on others, and including only those in an initial set, their dependencies, the...
1
by: Benny | last post by:
I have built a wrapper class as a dll in Visual Studio 2005 using Visual C++ .Net. When I include the dll in another project, Project B, on my machine, it works. When I package Project B and...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.