Assembly Dll's, Interfaces and Swapping

L

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..."
 
S

Stoitcho Goutsev \(100\)

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.
 
L

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..."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top