473,406 Members | 2,273 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,406 software developers and data experts.

Assemblies and references

Hello,


I have a C# application with many DLL's. The application implements a plugin architecture allowing another programmer to write a plug in and drop the resulting DLL into the "plugins" directory of my application. I am having some problems with the references of these DLL's. Currently, with certain DLL's, when I called Assembly.LoadFile, then Assembly.GetExportedTypes on the loaded assembly, I get an error stating that the dependencies for this DLL cannot be found. The DLL it relies on is actually in the same directory, but because this directory is not the application root, it can't find them.

I am pretty inexperienced with DLL stuff, is it possible to get my application to look in more than just the root directory for DLL's?


Thanks in advance.
Apr 28 '08 #1
3 983
balame2004
142 100+
Hello,


I have a C# application with many DLL's. The application implements a plugin architecture allowing another programmer to write a plug in and drop the resulting DLL into the "plugins" directory of my application. I am having some problems with the references of these DLL's. Currently, with certain DLL's, when I called Assembly.LoadFile, then Assembly.GetExportedTypes on the loaded assembly, I get an error stating that the dependencies for this DLL cannot be found. The DLL it relies on is actually in the same directory, but because this directory is not the application root, it can't find them.

I am pretty inexperienced with DLL stuff, is it possible to get my application to look in more than just the root directory for DLL's?


Thanks in advance.
Hello there,

I think one or more depedent dlls are missing. Not only add the resulting dll in your application also add the dlls that are referred by the resulting dll and all the dlls should be copied to output directory(References - Click reference and set the property "Copy to Output Directory" to true).


- Balaji U
Apr 29 '08 #2
Hello,

I am also working on plugin based architecture for my plugins.


Actually I want to do the following
I have a main windows exe application in C# and have 2 plugin dlls say A and B.
During the loading of exe application, I dynamically load the 2 plugins from the plugin directory. and they get loaded and i can call the classes of 2 plugins from main application exe.

Now there is a third plugin C which is dependent on A for some objects and wish to create thosed from plugin c.

May I know how have to implemented the design for intercommunication of objects between plugins.

Any help will be appreciated.
Jul 7 '08 #3
kenobewan
4,871 Expert 4TB
Please read the Posting Guidelines.

MODERATOR
Jul 24 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mart Rogers | last post by:
We have a situation where we have decided (in an attempt to keep things simple) to stick to local assemblies rather than global ones. However we now have the following situation looming AssyA ...
12
by: A-PK | last post by:
Anyone know how to breakdown every modules into different assemblies and refernces. Hence, to repair problematic module, only that particular module needed to be recompiled. or any place...
1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
2
by: Curtis Justus | last post by:
Hello, We are making a large scale application with numerous assemblies. We have our business object assemblies, UI assemblies, etc. During the course of the project, people would be getting...
1
by: Dan | last post by:
Here's a scenario I'd like to discuss in order to setup my VS.NET IDE properly and be able to prepare a distribution: a) I have a windows forms C# app using 3 shared assemblies I developed to...
1
by: Jimi | last post by:
(Sorry for the repost, but I thought maybe I'd have better luck this time) I'm working on a utility to provide an overview of one's .NET projects and one of the things I want to display is...
7
by: thechaosengine | last post by:
Hi all, Can anyone tell me if it is advisable (or even possible) to define a namespace across 2 or more assemblies? For example, consider the namespace SampleApplication.Data.Providers ...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
2
by: jnick | last post by:
I have the predicament of having to load several assemblies on the fly and when I do so, I get an exception stating that one of the referenced assemblies cannot be found. Is there any way to...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.