I have an ASP.NET web project that has been running for years. Last year we changed one of the data sources to MYSQL so added MySqlConnector from NuGet. Just recently the application started throwing the error "Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference." This error only occurs when we try to connect to MySql using MySqlConnetor. All NuGet packages have been updated and using .NET framework 4.6.1. The assembly binding portion of the webconfig is;
<assemblyIdentity name="System.Diagnostics.DiagnosticSource" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /><bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" /></dependentAssembly>
Similar questions have been ask in this forum and I have tried all suggested solutions, but am still getting the error. This must have been caused by an OS update as the error started occurring on the live server as well as my development machine.