We have a SharePoint 2010 solution developed in Visual Studio, which when deployed adds an assembly to the GAC (let's say MySolution.dll, version = 22.214.171.124).
We make some changes and redeploy the updated assembly (MySolution.dll, version = 126.96.36.199). All works well, but we are getting assembly binding errors in the event log:
Event manager error:Could not load file or assembly 'MySolution, Version=188.8.131.52, Culture=neutral, PublicKeyToken=*' or one of its dependencies. The system cannot find the file specified.
The application also includes reuseable workflows created in SharePoint designer, and these are associated with content types that were originally defined in MySolution v184.108.40.206. One of the features in the solution was updated in the new version and the feature itself updated using Chris O'Brien's Feature Upgrade Kit.
We have added a binding redirect to the new version in the web.config file for the web application hosting the solution (and have done this on all servers in the farm), but the error is still being logged.
How do we ensure the latest version of the assembly is always used?