.NETGURU
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...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification