C# project, MySql.Data.dll 8.0.26 & .NET Framework 4.8 issue
Posted by: Harun KILIÇ
Date: July 31, 2021 04:17PM

My VS2019 C# project works with;
MySql.Data.dll 8.0.25 & .NET FW 4.8 or .NET FW 4.7.2
but the same project does not work with
MySqlData.dll 8.0.26 (with & without Nuget package) & ( 4.8 || 4.7.2)

Any suggestions please, thanks.

private void readUserLoginTable()
{
string connectionString= ConfigurationManager.ConnectionStrings["MySQLConnectionString_USER"].ConnectionString;

string query = @"SELECT * FROM " + Tablo._company_login + " WHERE hash = @Hash LIMIT 1";

try
{
using (MySqlConnection connection = new MySqlConnection(connectionString))
{
using (MySqlCommand cmd = new MySqlCommand(query, connection))
{
cmd.CommandType = System.Data.CommandType.Text;
cmd.CommandText = query;
cmd.Connection = connection;
cmd.Parameters.AddWithValue("@Hash",App.HK.USER.hash);

connection.Open(); // This line causes MySqlException ex with the reference MySql.Data.dll 8.0.26
...

ex.Message = SSL Connection error
ex.Number = 0
ex.ErrorCode = -2147467259
ex.InnerException.InnerException = {"Beklenmeyen paket biçimi nedeniyle el sıkışması başarısız oldu."} Unexpected packet format..

Options: ReplyQuote


Subject
Written By
Posted
C# project, MySql.Data.dll 8.0.26 & .NET Framework 4.8 issue
July 31, 2021 04:17PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.