Re: Redirecting Assembly Binding
- From: v-phuang@xxxxxxxxxxxxxxxxxxxx ("Peter Huang" [MSFT])
- Date: Fri, 17 Feb 2006 02:43:26 GMT
Hi Mark,
Based on my research, the fusion.dll which is component of .NET framework
will match Full Qualified Name of the strong named DLL. This is by design
inside the CLR implement so far.
As you said, the strongnamed DLL is an evidence to prove its unique
identity. But a strongly named assembly consists of four attributes that
uniquely identify the assembly: a filename(without an extension), a version
number, a culture identity and a public key token(a value derived from a
public key).
For detailed information you may refer to books.
Applied Microsoft .NET Framework Programming (Paperback)
by Jeffrey Richter
See Section"Giving an Assembly a Strong Name", Charpter 3.
The located assembly's manifest definition with name xxx.dll does not match
the assembly reference
http://blogs.msdn.com/junfeng/archive/2004/03/25/95826.aspx
So the bindingredirect element is used in this scenario to instruct the CLR
to bind to a new DLL when it request for an old one.
Also since .NET support side-by-side execution, which means that we may
have one assembly of multiple versions on the same machine.
Because .NET will probe multiple places for an assembly binding.
e.g. there is strong named assembly A has a version 1.0.0.0 in GAC, but it
also have another version 2.0.0.0 in appbase.
So when binding time, which assembly CLR should bind to? the version
1.0.0.0 or 2.0.0.0? If we ignore the version attribute, that will cause the
..NET fusion mechanism confused.
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Redirecting Assembly Binding
- From: Mark Olbert
- Re: Redirecting Assembly Binding
- References:
- Redirecting Assembly Binding
- From: Mark Olbert
- RE: Redirecting Assembly Binding
- From: "Peter Huang" [MSFT]
- Re: Redirecting Assembly Binding
- From: Mark Olbert
- Redirecting Assembly Binding
- Prev by Date: MABLE - J2EE Business Rule/Logic Engine for JBoss is under free software license ! Download and use for free !
- Next by Date: GetOleDbSchemaTable
- Previous by thread: Re: Redirecting Assembly Binding
- Next by thread: Re: Redirecting Assembly Binding
- Index(es):
Relevant Pages
|