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

Assembly Dll's, Interfaces and Swapping

Lee

Hello,

Assume that I have two dll assemblies that implement a common
interface. If the dll's are named the same, is it possible to swap the
dlls in the field? Say, shut down the software, swap the dll's and run
the software again?

--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Mar 9 '06 #1
2 1502
Lee,

If the file is loaded privately (not in the GAC) than, yes you can swap
them. Make sure they are not strongly signed or if they are they have the
same strong name (including version).

Make sure also that all public types and interfaces and their visible
members have the same names.

In the case of GAC deployed assemblies I believe you can swap the
application config file and use different version redirections.

Lee, I don't know what you are trying to achieve there, but I believe there
must be more elegant solution.
--
HTH
Stoitcho Goutsev (100)

"Lee" <lu*************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

Hello,

Assume that I have two dll assemblies that implement a common
interface. If the dll's are named the same, is it possible to swap the
dlls in the field? Say, shut down the software, swap the dll's and run
the software again?

--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."

Mar 10 '06 #2
Lee
Stoitcho Goutsev (100) enlightened me by writing:

application config file and use different version redirections.

Lee, I don't know what you are trying to achieve there, but I believe
there must be more elegant solution.


Thanks for the info, Stoitcho.

I am writing an abstraction layer for database access. Not a full
blown OPF, but in the same spirit. At any rate, I'm looking for ways
to make the specific layer used for the database (FirebirdSQL, SQL
Server, Access, etc) swappable in the field without recompiling.

Thanks again
--
Warm Regards,
Lee

"Upon further investigation it appears that your software is missing
just one thing. It definitely needs more cow bell..."
Mar 10 '06 #3

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

Similar topics

1
by: Marco von Frieling | last post by:
Hallo. Ich habe folgendes Problem: Ich baue gerade eine Art Framework für meine Firma, das diverse Grundklassen enthält, die nicht Projekt- oder Produktbezogen sind und allgemein verwendet...
2
by: Orantas Gladkauskas | last post by:
Hello everybody, I'm using Visual Studio 2003. Everything was fine until yesterday. I cannot add a WebBrowser or any other COM component on windows form any more. Every time I open a form in...
2
by: Saso Zagoranski | last post by:
Hi! Here's my problem: Let's say I have 2 interfaces: interface Module1 { public void method1(); } interface Module2
2
by: Bob | last post by:
I have a common assembly DLL that's installed into GAC (using msi created by a setup project). It contains classes used by all the applications we have. This works well but when I increase the...
3
by: markoueis | last post by:
Our .NET application, let's call it A, needs to load an assembly of another .NET application, let's call it B. Preferably I would like to early bind and early load the B assembly. However, in a...
2
by: Martin Zenkel | last post by:
Dear VS Team, using the Beta 2 of VS 2005 I've encontered the following problem. Let's assume threre are three Dll's, one unmanaged and two managed. In the unmanaged we put a simple unmanged...
0
by: Flack | last post by:
Hey guys, Here is my scenario: I have a form and two dlls, call them ClassLibrary1.dll and Interfaces.dll. In my form I have the following: private Assembly m_assembly; private Type m_type;...
0
by: Smokey Grindel | last post by:
I am writing an application on a 64bit workstation (XP Pro x64) and I am using reporting services which is installed as a 64bit sql server instance, but my project needs to reference the .NET...
2
by: Tony Johansson | last post by:
Hello! If I can add an assembly dll to the GAC by using gacutil -i assembly-dll-file is it then as an alternative possible to drag the assembly dll file to the GAC folder ? //Tony
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?
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
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...

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.