Solved

Running different .dll versions for an application.

Posted on 2004-09-29
5
201 Views
Last Modified: 2010-05-18
Hi Experts,
In .NET, I would like to run two different versions of the same dll file. The first dll file should be able to support five users and the other dll file should be supporting after five users, both the dll files are loaded in the same system, how can we set this kind of functionality for an application.
What are the drawbacks,if any. Anygood article on these topics in the web do forward the link.
Your feedback is highly appreciated.
Thanks in Advance
Veeru.
0
Comment
Question by:veeru_kvr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 3

Expert Comment

by:PodExpert
ID: 12179418
Hello,

I think it is impossible to use two versions of the same DLL at once. The only thing you can do is to rename one of the DLL's - then they'll behave as two different libraries.

What do you mean by supporting five users?

Regards.
P.
0
 

Author Comment

by:veeru_kvr
ID: 12187911
Hi,
It is possible but i have no idea regarding this, it is in .net.
One dll need to support the application upto 5users logging in and the other dll should get activated when the users logged in are more than 5 the other dll file should be activated.
0
 
LVL 6

Accepted Solution

by:
DominicCronin earned 125 total points
ID: 12261015
In dotnet the "equivalent" of a dll is an assembly. (Although strictly it is possible to make up an assembly consisting of several dlls) In order to load different assemblies programmatically based on some logic such as you describe, you can use System.Reflection.Assembly.Load

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemreflectionassemblyclasstopic.asp
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Introduction to Processes

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question