First of all, when I try to read data from my mysql database on my windows server 2016 vds server to my desktop applications(c#), I often encounter this error. I couldn't handle it.
***Error details:***
MySql.Data.MySqlClient.MySqlException
HResult=0x80004005
Message=Fatal error encountered during command execution.
Source=MySql.Data
StackTrace:
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at serverAnalizUrunBot.Form1.backgroundWorker1_DoWork(Object sender, DoWorkEventArgs e) in C:\Users\sezer\source\repos\serverAnalizUrunBot\serverAnalizUrunBot\Form1.cs:line 43
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
This exception was originally thrown at this call stack:
[External Code]
Inner Exception 1:
MySqlException: Fatal error encountered attempting to read the resultset.
Inner Exception 2:
MySqlException: Reading from the stream has failed.
Inner Exception 3:
IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Inner Exception 4:
SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
User contributions licensed under CC BY-SA 3.0