Posted by Anuraj on Thursday, May 2, 2013 Reading time :1 minute
Today I come across an application crash due to version mismatch. The application executable was compiled using version 1.0.x.x, and we were using 6.2.x.x. Due to this version mismatch application was crashing.
Unfortunately we donâ€™t have the source code of this application with us. Later I got one solution using bindingRedirect. This configuration element will help you to redirect referenced assemblies from one version to another using the app.config file.
We fixed the problem by creating an application.exe.config file with binding redirection inside it. By doing this you are instructing the application or DLL that during runtime, for a particular dependent assembly to use a particular version when an application and/or other assembly is looking for the older version.
You can find more details about binding redirection in MSDN.
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.