G
Guest
Hi all,
Please bear with me, but I was wondering about what happens when older
assemblies call code from a newer assembly when different framework versions
become involved...
Take, for example, a case where an application assembly (ASM1) and some
3rd-party assembly library (ASM2) are two private assemblies (not in the
GAC): both at version 1.0, both compiled against .NET 1.0, and where ASM1
calls into ASM2 for some piece of functionality.
If at some point, the company providing ASM2 upgrades their functionality
and redistributes a 2.0 version built against .NET 1.1, I'm wondering what
would happen if ASM2 were replaced with the new version on the machine and a
binding redirect were given to ASM1 in order to allow it to call into the
newer version of ASM2. Assuming both .NET 1.0 and .NET 1.1 are on the
machine and remembering that these are private assemblies which are not in
the GAC:
1: Would ASM2 be loaded within the .NET 1.1 CLR or would it load against
..NET 1.0 (meaning it would break if it happened to call into 1.1
functionality)?
2: If it IS a problem, how do you get around that issue? Are you required
to upgrade ASM1 to .NET 1.1?
3: Do the answers to 1 and\or 2 change if ASM1 is actually a library
(rather than an application) being called by a .NET 1.0 application assembly
(ASM3) that you have no control over (ie. meaning you cannot influence the
".config" file for ASM3)?
4: Do the answers change if only one of the two frameworks is on the
machine (ie. 1.0 only or 1.1 only)?
Thanks in advance,
Bill
Please bear with me, but I was wondering about what happens when older
assemblies call code from a newer assembly when different framework versions
become involved...
Take, for example, a case where an application assembly (ASM1) and some
3rd-party assembly library (ASM2) are two private assemblies (not in the
GAC): both at version 1.0, both compiled against .NET 1.0, and where ASM1
calls into ASM2 for some piece of functionality.
If at some point, the company providing ASM2 upgrades their functionality
and redistributes a 2.0 version built against .NET 1.1, I'm wondering what
would happen if ASM2 were replaced with the new version on the machine and a
binding redirect were given to ASM1 in order to allow it to call into the
newer version of ASM2. Assuming both .NET 1.0 and .NET 1.1 are on the
machine and remembering that these are private assemblies which are not in
the GAC:
1: Would ASM2 be loaded within the .NET 1.1 CLR or would it load against
..NET 1.0 (meaning it would break if it happened to call into 1.1
functionality)?
2: If it IS a problem, how do you get around that issue? Are you required
to upgrade ASM1 to .NET 1.1?
3: Do the answers to 1 and\or 2 change if ASM1 is actually a library
(rather than an application) being called by a .NET 1.0 application assembly
(ASM3) that you have no control over (ie. meaning you cannot influence the
".config" file for ASM3)?
4: Do the answers change if only one of the two frameworks is on the
machine (ie. 1.0 only or 1.1 only)?
Thanks in advance,
Bill