-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: mahesh_m
Message 2 in Discussion
New Message on MumbaiUserGroup
[18Nov05] How Do I
?
Reply
Reply to Sender
Recommend
Message 1 in Discussion
From:
mahesh_m
18 November 2005
How Do I...
_________________________________________________________________
How Do I Use Assembly Version Policy?
A primary goal of the deployment system in the .NET Framework is to eliminate
conflicts between applications caused by shared components and shared states
(or DLL conflicts). A key solution to this problem is a robust versioning
system. The .NET Framework records information about an application's
dependencies in the assembly manifest. This dependency information includes a
version number that is used at runtime to load the proper version of a
dependency.
By default, the common language runtime will load the version of a dependency
that is specified in the manifest. This is preferred in the majority of
scenarios. However, there are cases where running an application with a
different version of a dependency can be useful. In order to accomplish this,
version policies can be included in an application's configuration file. For
example, the following XML code fragment redirects references to version
5.0.0.0 of a shared assembly called "CalcR" up to version 6.0.0.0 of that
assembly:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="calcR"
publicKeyToken="a1690a5ea44bab32"
culture=""/>
<bindingRedirect oldVersion="5.0.0.0"
newVersion="6.0.0.0
"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
In addition to policies specified at the application level, the .NET Framework
also provides two other policy levels: publisher and administrator. A Publisher
policy statement describes the compatibility of an assembly issued by the
publisher of that shared assembly. Administrator level policy is a machine
version policy that affects all applications. Administrator policy is created
using the same XML syntax as application level policy. The administrator policy
file is called
machine.config, and resides in the common language runtime install directory.
The three policy levels are evaluated in the following order:
Application Policy
Publisher Policy
Administrator Policy
_________________________________________________________________
You can also post your questions which you think are of the form "How Do I...?"
to [EMAIL PROTECTED]
. I will try to answer them in this section.
--
--
Thank You,
Regards,
m_mahesh
Mahesh Mitkari
INETA Volunteer
Asst. Manager (Pune .net User group)
Manager (PUG Student)
09890555485 ([EMAIL PROTECTED])
http://mmahesh.blogspot.com
_________________________________________________________________
Note: The information Published under this section is ONLY FOR INFORMATIVE
PURPOSE of the User Group Members. The most of the part of this section is
collected from the Microsoft .Net Framework SDK
2.0, Microsoft website, Resource kit published by the Microsoft and MSDN
Library. It may be published here as some part or full article as it is
originally published by Microsoft and may be copyrighted or won by the
respective owner or Microsoft. We cannot guarantee the accuracy of any
information. Microsoft may have patents, patent applications, trademarks,
copyrights, or other intellectual property rights.
View other groups in this category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]