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 = 188.8.131.52).
We make some changes and redeploy the updated assembly (MySolution.dll, version = 184.108.40.206). 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=220.127.116.11, 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 v18.104.22.168. 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?