Bug #101095 | ASP.NET build issues starting with MySQL .NET Connector 8.0.20 and 8.0.21 | ||
---|---|---|---|
Submitted: | 8 Oct 2020 18:51 | Modified: | 10 Aug 2022 21:16 |
Reporter: | Joey Newell | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 8.0.20,8.0.21 | OS: | Windows |
Assigned to: | CPU Architecture: | Any |
[8 Oct 2020 18:51]
Joey Newell
[9 Oct 2020 3:41]
Bradley Grainger
> Downgrading to 8.0.19 or earlier resolves the issue so we are unclear what changed with 8.0.20 that introduced this issue not allowing us to get clean builds. Comparing https://www.nuget.org/packages/MySql.Data/8.0.19 and https://www.nuget.org/packages/MySql.Data/8.0.20 you can see that the .NET 4.8 version of the library added a dependency on System.Buffers (>= 4.5.0). The compiler warning tells you how to fix the problem (and possibly avoid assembly binding failures at runtime): add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Buffers" culture="neutral" publicKeyToken="cc7b13ffcd2ddd51" /><bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" /></dependentAssembly></assemblyBinding>
[9 Oct 2020 12:48]
MySQL Verification Team
Hello Joey Newell, Thank you for the report and feedback! regards, Umesh
[5 Feb 2021 0:00]
Gustavo Cuatepotzo
Hi Joey, Can you please test with the latest version? Regards
[10 Aug 2022 21:16]
Daniel Valdez
Issue could not be reproducible.