devxlogo

Changing Assembly Versions During Runtime Using the Web.Config File

Changing Assembly Versions During Runtime Using the Web.Config File

You can change the assembly version quickly by including the bindingRedirect element in the web.config file.

For example, suppose you need to redirect a particular old version dll hit to a new version. The following code shows how to redirect from version 1.0.0.1 to 1.0.0.2:

  <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">                                  

To redirect any older version to a newer version, specify a “*” as the value of the

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist