Search:
Namespaces
Discussions
.NET v1.1
Feedback
Assembly loading
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.clr
.
Post a new message to this list...
Kjetil Kristoffer Solberg
I have a question regarding assembly loading.Basically I am asking whether
or not the
assembly loader can load multiple versions of the same assembly if:
1. The assemblies are strongly named and lies in the GAC
2. The assemblies are strongly named and lies outside the GAC
3. The assemblies are not signed and loaded using the Load method with a
partial qualified reference(incomplete four-part name).
4. The assemblies are not signed and loaded using the Load method with a
fully qualified reference(complete four-part name).
If it can load multiple versions of the same assembly how does the CLR
differ between types in one version of the assembly
and types in another version? Also this question applies to both statically
bound assemblies as dynamically bound assemblies.
regards
Kjetil Kristoffer Solberg
Reply to this message...
Richard Blewett
<inline>
"Kjetil Kristoffer Solberg" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Yes - if two parts of an application have been built against different
versions of the same assembly it will load two versions (assuming no version
redirection)
[Original message clipped]
Same as 1) if loaded from a codebase hint - if by probing no as it will only
find the first on the probing path and one of the loads will fail due to a
version mismatch.
[Original message clipped]
No, for non-strong named assemblies version information is ignored
[Original message clipped]
No, for non-strong named assemblies version information is ignored
[Original message clipped]
As far as the runtime is concerned any difference in assembly name is a
different assembly. Therefore, types from one version of an assembly cannot
be used in place of those in a differenct version of an assembly.
[Original message clipped]
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com