Posted by: Cirilo Meggiolaro | 10/16/2008

Tip of the day #2 – Change the version of an assembly at the application level

Imagine the following scenario: Your web application uses a strong-named third part assembly and a new version has been released. You want enable your web application to use the newer version of this assembly.

The .NET framework provides us an easy way to achieve that at the application level. You just need to edit the application’s config file.

The assemblyBinding section provides tags that allow you to perform the assembly binding redirect.

To give you a sample, the following code is redirecting two Ajax assemblies to the new 3.5 version:

Important: Only strong-named assemblies can be redirected.

For a full explanation of the assembly binding redirect, click here!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: