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 = 1.0.0.0).
We make some changes and redeploy the updated assembly (MySolution.dll, version = 1.1.0.0). 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=1.0.0.0, 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 v1.0.0.0. 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?