473,800 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

run multiple versions of the same assembly ?

hi Guys

Can u plz provide me some code/link where i can find hw to run multiple
versions of the same assembly?

Regards
Ashish
Nov 16 '05 #1
2 1866
try searching for shared assemblies and GAC (global cache assembly)

"Ashish" <as****@globsyn .co.in> wrote in message
news:eI******** *****@tk2msftng p13.phx.gbl...
hi Guys

Can u plz provide me some code/link where i can find hw to run multiple
versions of the same assembly?

Regards
Ashish

Nov 16 '05 #2
You *want* to do this? most people find that this is something they try to avoid! It can cause pain when attempting to pass Person from version 1 where Person from version 2 is expected, etc

Assembly av1 = Assembly.Load(" Foo, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= aabbccddeeff112 233");

Assembly av2 = Assembly.Load(" Foo, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= aabbccddeeff112 233");

will do it

Regards

Richard Blewett - DevelopMentor

http://staff.develop.com/richardb/weblog

nntp://news.microsoft. com/microsoft.publi c.dotnet.langua ges.csharp/<eI************ *@tk2msftngp13. phx.gbl>

hi Guys

Can u plz provide me some code/link where i can find hw to run multiple
versions of the same assembly?

Regards
Ashish

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004

[microsoft.publi c.dotnet.langua ges.csharp]
Nov 16 '05 #3

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

Similar topics

3
3660
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 depends on AssyB depends on AssyD version 1 AssyA depends on AssyC depends on AssyD version 2 Obviously we cannot copy both versions of AssyD to the AssyA's bin directory. Is the only sensible way around this (rather than going the GAC route)...
0
281
by: Andy | last post by:
I have an application that acts as a shell. The shell loads an Assembly (Assembly1). Assembly1 uses a THIRD PARTY assembly Assembly2 that references Assembly3 ver 1.0.0.0. Now the Shell also references Assembly3 but it references ver 1.1.0.0. When I build the application, I get an error saying An unhandled exception of type 'System.IO.FileLoadException' occurred in Assembly2.dll Additional information: The located assembly's manifest...
2
1641
by: sandman | last post by:
I'm writing a conversion utility to move data from ver 1 of my C# WinForms app (Access database) to ver 2 (SQL server). I realized that I have most of the tools I need already written (read and write data) and they are in separate .NET projects. But when I wrote ver 2, I kept all the namespaces and class names the same. I've gone thru and renamed the output dll's in ver 2 so I can reference both sets of libraries in my conversion project...
12
2986
by: Evan Stone | last post by:
If one is developing a .NET application, how can I develop an application that uses COM automation that targets multiple versions of Word? For example, the signature for the Document.Open method is different from version 9 to version 11 (and I'm sure there are other variations as well), and I'm wondering if there's some easy way to deal with it. At present I'm only concerned with supporting 9-11 (i.e. Word 2000, XP, and 2003), though I'd...
8
4450
by: 6tc1 | last post by:
Hi all, I'm having a problem where in my solution that contains multiple projects - I instantiate a singleton class in one assembly and then if another assembly tries to use that singleton class another instance of it is created. Basically: --Assembly 1 (the executable)-- -Main.cs-
1
1082
by: Mark Edwards | last post by:
I've got an asp.net app that gets installed 150 times on a server. With every installation, there is another /bin/ directory with another copy of the dll in it. (meaning 150 copies of the dll) I want to deploy just one codebehind dll for the whole server and tell all the app copies to use it. Can this be done?
10
4990
by: John | last post by:
I currently have a Windows Service that runs Transactions that are very Processor/Memory Intensive. I have a requirement to deploy multiple instances of the Web service on the Same server. Each Instance needs to run in its own process. My current approach to this is to put all the logic into a separate "Worker" assembly and install it into the GAC. I'm then going to create Multiple Windows Services (i.e. MyService1, MyService2 etc..)...
1
3181
by: Richard Lewis Haggard | last post by:
I'm having a problem with what appears to be some sort of confusion with references. I have a single solution with a dozen projects which has been working quite nicely for a while. The references between projects in the solution were established through project references, not by browsing to an assembly DLL. All of the projects are strongly named and use key files. Each project's AssemblyInfo.cs specifies the assembly version, where the...
5
12099
by: Laurence | last post by:
In VS.2005 using VB.NET There are two versions on every project, The Assembly Version and the File Version. Why are there two different versions? As far as I can tell, there is not need for two versions. The assembly is the file, isn't it?
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.