Bug #98204 Failed to load Ubiety.Dns.Core.dll
Submitted: 13 Jan 2020 14:16 Modified: 19 Feb 2020 15:07
Reporter: Rui Fan Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Severity:S2 (Serious)
Version:8.0.19 OS:Microsoft Windows
Assigned to: Daniel Valdez CPU Architecture:Any

[13 Jan 2020 14:16] Rui Fan
Description:
The latest nuget package (MySql.Data 8.0.19) contains an unsigned version of Ubiety.Dns.Core.dll. This results in an exception while loading.

How to repeat:
1. Create a .NET application.
2. Install the nuget package MySql.Data 8.0.19
3. Run the .NET application.

Suggested fix:
Replace Ubiety.Dns.Core.dll with the strong name signed assembly.
[13 Jan 2020 21:17] Peter Ford
Could anybody explain how to "Replace Ubiety.Dns.Core.dll with the strong name signed assembly."?
[14 Jan 2020 3:33] Luis Chicaiza
In my case, I just added a new reference to the NuGet package into my C# project: https://www.nuget.org/packages/Ubiety.Dns.Core/
[21 Jan 2020 19:22] Peter Ford
In Package Manager Console, this worked, thanks! 
Install-Package Ubiety.Dns.Core -Version 2.4.1
[21 Jan 2020 20:41] MySQL Verification Team
Please check action: [21 Jan 19:22] Peter Ford. Thanks.
[23 Jan 2020 10:30] Daniel Valdez
To enable DNS-SRV in your .NET Framework project, avoid downloading the MySql.Data.dll package from the NuGet gallery. The package omits some libraries required by .NET Framework for this feature. Instead, download the no-install version of MySQL Connector/NET from https://dev.mysql.com/downloads/connector/net/ and then add MySql.Data.dll as a reference to your project. No other references are required if all items remain in the same location.

.NET Core projects can use the NuGet package directly to enable the DNS-SRV feature.
[23 Jan 2020 10:34] Daniel Valdez
Posted by developer:
 
Now the Ubiety.Dns.Core.dll are signed properly.
[25 Feb 2020 4:39] Dieter Lunn
As the owner of the project Ubiety.Dns.Core I was interested in why you decided to include the library in your package instead of referencing mine as a dependency? If it is due to the signing I would recommend donating to the project instead of signing it yourself.
[30 Mar 2020 9:27] Omar Alnayme
Hi, is this free to be used in commercial application?