473,396 Members | 1,775 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.

loading DLL's from single location

I have several programs in development that all use the same DLLS. Many of which will be the new enterprise library objects. While in development and initial launch I do not want to add these to the GAC of each machine. I want to make a single directory on each computer to hold the dlls and use a <probing> type element in the config file to find them. It appears that <probing> is only for a subfolder off the root of the current application. How can I do something similar without having to <codebase> each assembly?

my hierachy would look something like this...

root folder
application folder
application folder
DLL folder
--
--Eric Cathell, MCSA
Nov 21 '05 #1
2 875

"ECathell" <ec******@nospam.mountaire.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
While in development and initial launch I do not want to add these to
the GAC of each machine. I want to make a single directory on each
computer to hold the dlls .. . . How can I do something similar without having to <codebase> each
assembly?


I don't believe you can. You /would/ have to codebase each assembly
separately, except in the case where one assembly, loaded from your
application, then loads another that can reside in the /same/ directory,
as in

ApplicationA, in directory dirA
loads AssemblyB, in directory B (using codebase), which then
loads AssemblyC, /also/ in directory B.

That said, you'll get performance gains putting assemblies into the
GAC; it just makes it /easier/ for the Framework to /find/ things.

Regards,
Phill W.
Nov 21 '05 #2
thanks for the answer Phil.

I am intending on putting it in the GAC once I am done with the major coding
parts...I was just looking for a temp quick fix, of course those are few and
far between. hehe.
--
--Eric Cathell, MCSA
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:d1**********@yarrow.open.ac.uk...

"ECathell" <ec******@nospam.mountaire.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
While in development and initial launch I do not want to add these to
the GAC of each machine. I want to make a single directory on each
computer to hold the dlls

. . .
How can I do something similar without having to <codebase> each
assembly?


I don't believe you can. You /would/ have to codebase each assembly
separately, except in the case where one assembly, loaded from your
application, then loads another that can reside in the /same/ directory,
as in

ApplicationA, in directory dirA
loads AssemblyB, in directory B (using codebase), which then
loads AssemblyC, /also/ in directory B.

That said, you'll get performance gains putting assemblies into the
GAC; it just makes it /easier/ for the Framework to /find/ things.

Regards,
Phill W.

Nov 21 '05 #3

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

Similar topics

2
by: Foehammer | last post by:
Hello, I'm trying to load an assembly dynamically using an app domain. This is a proof-of-concept for a larger project, so please excuse the lame class names. TestLib is the dll where all the...
22
by: Jim Hubbard | last post by:
I am reposting a portion of a thread that I am involved in under a new topic because it seems that there are still people that believe the whole "DLL Hell" myth. I hope I can shed some light on...
0
by: Philip | last post by:
I have developed a MC++ business component (named PWSNetBridge.dll) which utilizes an exported class resident within a separate native DLL (named PWSWinBridge.dll). This exported class is made...
4
by: Matt Sawyer | last post by:
I am attempting to use an API (CxApiOem.dll) that has a large number of defines and complicated structs. It's just too much hassle to attempt to use DLLImport to make the desired API calls. ...
2
by: Claire | last post by:
How do I load and run dll functions dynamically please? The dll may be anywhere and its location is set in a command line parameter. I've loaded the dll OK, done the equivalent of GetProcAddress...
1
by: Brian | last post by:
I've looked through the previous posts on this one and have verified permissions and location of my Dlls, but I am still getting an exception when I try to Load an assembly. The directory where...
0
by: Oenone | last post by:
I have created a number of "plug-in" DLLs for my ASP.NET application which are dynamically loaded at run-time. This is done by locating the DLL file on disk and loading it using the...
0
by: Ratul | last post by:
Hi all! I'm writing a winforms test harness which lets me specify a subfolder from which to load a particular .net assembly dll. The idea is that there will be multiple subfolders, each having...
4
by: =?Utf-8?B?SmFu?= | last post by:
I have a .NET 2.0 application divided in two assemblies; the exe and a dll. The application generates a plugin-dll which is then loaded in a separate AppDomain (along with a second instance of my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.