473,406 Members | 2,954 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,406 software developers and data experts.

Side-By-Side cooexistence of my own assemblies

I have two versions of the same dll, one is in a production app, and the
other is in a test app. When I run the test app, it intereferes with the
operation of the production app, which leads me to believe that it's not
really using the right version of the assembly... The two versions of the dll
are not compatible, the new one completely restructures a lot of the way the
old one worked, so i can't forklift the old one outright.. Is there
something I'm missing? I just put the two dlls in separate apps on a windows
2000 host, and set each one to run isolated (but it doesn't appear that it is
isolated afterall..)

I have static and singleton components in each of the dlls... and when I
start the test one up, it messes up the production one's singleton details...
there has to be a way to tell it not to use the one that's already loaded by
the production app when I start up the test app... I even gave the dll's
different version numbers... I think the problem wouldn't exist if I had 2k3
server and separate app pools, but that's not an option, becasue of some
legacy stuff I have to use at the moment... is there anything I can do to
work around this?
Oct 11 '06 #1
4 1003
if there is no unmanaged code and the virdirs are seperate application
(giving each is own domain) thn you should not have a problem.

-- bruce (sqlwork.com)

"dave.dolan" <da********@nospam.beginswithg.comwrote in message
news:2A**********************************@microsof t.com...
>I have two versions of the same dll, one is in a production app, and the
other is in a test app. When I run the test app, it intereferes with the
operation of the production app, which leads me to believe that it's not
really using the right version of the assembly... The two versions of the
dll
are not compatible, the new one completely restructures a lot of the way
the
old one worked, so i can't forklift the old one outright.. Is there
something I'm missing? I just put the two dlls in separate apps on a
windows
2000 host, and set each one to run isolated (but it doesn't appear that it
is
isolated afterall..)

I have static and singleton components in each of the dlls... and when I
start the test one up, it messes up the production one's singleton
details...
there has to be a way to tell it not to use the one that's already loaded
by
the production app when I start up the test app... I even gave the dll's
different version numbers... I think the problem wouldn't exist if I had
2k3
server and separate app pools, but that's not an option, becasue of some
legacy stuff I have to use at the moment... is there anything I can do to
work around this?

Oct 11 '06 #2
I wouldn't have thought so either, but the fact is that I do... One of my
singletons keeps a dictionary, and when I startup the test version, the
dictionary on the production one throws duplicate key errors as soon as I hit
the thing. It's really strange.

"bruce barker (sqlwork.com)" wrote:
if there is no unmanaged code and the virdirs are seperate application
(giving each is own domain) thn you should not have a problem.

-- bruce (sqlwork.com)

"dave.dolan" <da********@nospam.beginswithg.comwrote in message
news:2A**********************************@microsof t.com...
I have two versions of the same dll, one is in a production app, and the
other is in a test app. When I run the test app, it intereferes with the
operation of the production app, which leads me to believe that it's not
really using the right version of the assembly... The two versions of the
dll
are not compatible, the new one completely restructures a lot of the way
the
old one worked, so i can't forklift the old one outright.. Is there
something I'm missing? I just put the two dlls in separate apps on a
windows
2000 host, and set each one to run isolated (but it doesn't appear that it
is
isolated afterall..)

I have static and singleton components in each of the dlls... and when I
start the test one up, it messes up the production one's singleton
details...
there has to be a way to tell it not to use the one that's already loaded
by
the production app when I start up the test app... I even gave the dll's
different version numbers... I think the problem wouldn't exist if I had
2k3
server and separate app pools, but that's not an option, becasue of some
legacy stuff I have to use at the moment... is there anything I can do to
work around this?


Oct 11 '06 #3
haha well ook, I shouldn't maybe... but I do... I cleared the asp.net temp
files out just in case, and neither assembly is int he gac, so I have no idea
why this is happening. The only thing that I can think of is that it's win2k
and they're all using the same processes?

"bruce barker (sqlwork.com)" wrote:
if there is no unmanaged code and the virdirs are seperate application
(giving each is own domain) thn you should not have a problem.

-- bruce (sqlwork.com)

"dave.dolan" <da********@nospam.beginswithg.comwrote in message
news:2A**********************************@microsof t.com...
I have two versions of the same dll, one is in a production app, and the
other is in a test app. When I run the test app, it intereferes with the
operation of the production app, which leads me to believe that it's not
really using the right version of the assembly... The two versions of the
dll
are not compatible, the new one completely restructures a lot of the way
the
old one worked, so i can't forklift the old one outright.. Is there
something I'm missing? I just put the two dlls in separate apps on a
windows
2000 host, and set each one to run isolated (but it doesn't appear that it
is
isolated afterall..)

I have static and singleton components in each of the dlls... and when I
start the test one up, it messes up the production one's singleton
details...
there has to be a way to tell it not to use the one that's already loaded
by
the production app when I start up the test app... I even gave the dll's
different version numbers... I think the problem wouldn't exist if I had
2k3
server and separate app pools, but that's not an option, becasue of some
legacy stuff I have to use at the moment... is there anything I can do to
work around this?


Oct 11 '06 #4
Well you're sort of right there Bruce, they don't interfere with one and
other, but I figured it out, I had to go into the web.config and specify the
fully qualified assemblyname of each of the referenced assemblies, including
the version numbers, otherwise I was getting the luck of the draw,
apparently. (which meant whichever version loaded first.)

"bruce barker (sqlwork.com)" wrote:
if there is no unmanaged code and the virdirs are seperate application
(giving each is own domain) thn you should not have a problem.

-- bruce (sqlwork.com)

"dave.dolan" <da********@nospam.beginswithg.comwrote in message
news:2A**********************************@microsof t.com...
I have two versions of the same dll, one is in a production app, and the
other is in a test app. When I run the test app, it intereferes with the
operation of the production app, which leads me to believe that it's not
really using the right version of the assembly... The two versions of the
dll
are not compatible, the new one completely restructures a lot of the way
the
old one worked, so i can't forklift the old one outright.. Is there
something I'm missing? I just put the two dlls in separate apps on a
windows
2000 host, and set each one to run isolated (but it doesn't appear that it
is
isolated afterall..)

I have static and singleton components in each of the dlls... and when I
start the test one up, it messes up the production one's singleton
details...
there has to be a way to tell it not to use the one that's already loaded
by
the production app when I start up the test app... I even gave the dll's
different version numbers... I think the problem wouldn't exist if I had
2k3
server and separate app pools, but that's not an option, becasue of some
legacy stuff I have to use at the moment... is there anything I can do to
work around this?


Oct 11 '06 #5

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

Similar topics

6
by: Tom Dacon | last post by:
If you're not putting assemblies in the GAC, but are referencing shared code with copylocal=true into the projects that use them, is there any value to signing the assemblies? In the environment...
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
3
by: Joel Leong | last post by:
I wish to know the industrial practices for signing assemblies with key files. I genereted a key file to sign my assemblies. Should I sign all my assemblies with a single key files or I shall...
1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
0
by: BlobZ | last post by:
Hi, I've just upgraded from VS6 to VS2003 and went to compile and run my first new application. The application runs fine on my workstation but fails on other XP workstations. The eventlog...
8
by: Charles Law | last post by:
I'm sorry to keep harping on about this one, but it is really quite important for me to be able to list _all_ required assemblies in my Help About box. Herfried kindly posted some code before that...
3
by: Claudio Pacciarini | last post by:
Hi everyone, I have a question about .NET code sharing and reuse, and also about application design best practices / guidelines. Currently, we have many different .NET projects in source...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
4
by: illegal.prime | last post by:
Hi all, I'm getting unexpected results when trying to preload assemblies into an AppDomain I'm creating. Upon creation of the AppDomain - I attach an AssemblyResolve to both my current AppDomain...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
0
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...

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.