-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: johnsonsmithy2k2
Message 1 in Discussion



How an Application Determines
Which .NET Framework Version to Use 

        In
side-by-side execution, it is possible for an application to be composed
of components that are built using different versions of the .NET Framework.
This can create conflicts between the dependencies of the components. For
example, suppose component A is built using the .NET Framework version
1.0 and needs to use version 1.0 of the System.Data assembly. Component
B is built using the .NET Framework version 1.1 and needs to use version
1.1 of the System.Data assembly. If the assembly versions are incompatible,
but are loaded at the same time, this could lead to unintended type casting
exceptions, or even worse problems.

        To
solve this problem, when an application uses components that are built
on different versions of the .NET Framework, the runtime version that is
associated with an application determines which version of the .NET Framework
assemblies are used by the application and all of its components. In the
previous example, if the application is associated with version 1.1 of
the .NET Framework, version 1.1 of the System.Data assembly is then loaded
and shared across all components used by the application. The reference
from component A to version 1.0 of the System.Data assembly is promoted
at run time to reference version 1.1.

        You
can override this behavior by adding <bindingRedirect> elements to
the Machine.config or Web.config files. This allows an application to use
an updated assembly version that was designed to replace an existing assembly
for certain types of applications. For example, if an updated version of
System.Web.Service.dll is released in the future that supports SOAP version
1.2, you might want your application to use that version, instead of the
version that was installed with the runtime originally.

        This
behavior can also be overridden in the ASP.NET host configuration file
(Aspnet.config). ASP.NET uses this file to ensure that the version of System.Web.dll
and System.Web.RegularExpressions.dll always matches the runtime version
associated with an application, regardless of any overrides in the Web.config
file.

        Sometimes
you might want to use a component that was built using a later version
of ASP.NET in an application built with an earlier version. Remember that
the ASPNET ISAPI version associated with an application always determines
the version of the runtime used for an application. If the application
is configured to use the earlier version of the runtime, the component
will be automatically redirected at runtime to use that version, as well.
When using a component built with a later version of the .NET Framework
in an application built on an earlier version, consider the following:


        Make sure the component does not
use any features or depend on any behaviors specific to the later version
of the .NET Framework. These features might not be available in the earlier
version of the runtime. 
        ASP.NET uses script maps in IIS
to bind an application to a version of the runtime. <supportedRuntime>
and <requiredRuntime> configuration elements are not applicable
to ASP.NET applications. 
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery of the message to such person) and may contain legally privileged and 
confidential information belonging to Tata Consultancy Services Limited. It must not 
be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever 
manner) by any person other than the addressee. Unauthorized use, disclosure or 
copying is strictly prohibited and may constitute unlawful act and can possibly 
attract legal action, civil and/or criminal. The contents of this message need not 
necessarily reflect or endorse the views of Tata Consultancy Services limited on any 
subject matter.

  Any action taken or omitted to be taken based on this message is entirely at your 
risk and neither the originator of this message nor Tata Consultancy Services Limited 
takes any responsibility or liability towards the same. Opinions, conclusions and any 
other information contained in this message that do not relate to the official 
business of Tata Consultancy Services limited shall be understood as neither given nor 
endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy 
Services Limited. If you have received this message in error,  you should destroy this 
message and may please notify the sender by e-mail. 

 Thank you.



-----------------------------------------------------------

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]

Reply via email to