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 = 220.127.116.11).
We make some changes and redeploy the updated assembly (MySolution.dll, version = 18.104.22.168). 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=22.214.171.124, 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 v126.96.36.199. 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?