We are using MYSQL and its connector in Asp.net MVC web application. Sites are working fine from last couple of the years with existing setup of MYSQL< Connector.
But Recently we are getting this error:
MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
and application getting hung, i.e. Browser showing Spinner only for couple of the minutes.
For every database call we using USING statement with Entity Framework. So connection will auto close.
So please let me know how can I fix this type of issue?
Thanks, Laxmi Lal Menaria
User contributions licensed under CC BY-SA 3.0