Bug #14917 Can't open connection
Submitted: 14 Nov 2005 11:02 Modified: 15 Dec 2005 20:41
Reporter: Oscar Acosta Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / NET Severity:S1 (Critical)
Version:1.0.6 OS:Windows (Win2k)
Assigned to: Assigned Account CPU Architecture:Any

[14 Nov 2005 11:02] Oscar Acosta
Description:
A connection can't be open to de database. There is an exception:
MySql.Data.MySqlClient.MySqlException: 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
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at MySql.Data.Common.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   --- End of inner exception stack trace ---
   at MySql.Data.Common.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.ReadByte()
   at MySql.Data.MySqlClient.PacketReader.ReadHeader()
   at MySql.Data.MySqlClient.PacketReader.OpenPacket()
   at MySql.Data.MySqlClient.NativeDriver.Authenticate411()
   at MySql.Data.MySqlClient.NativeDriver.Authenticate()
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionString settings)
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at MySql5Test.MySql5Test.CreateTable() in d:\documents and settings\oscar.acostamontesde\my documents\visual studio projects\mysql5test\mysql5test.cs:line 47

How to repeat:
I have repeated this error in another machine with same configuration:
Win2k Sp4, .Net framework 1.1, MySql 5.0, Connector 1.0.6. Visual Studio 2003.
I can't even execute the example included with connector!.
[15 Nov 2005 20:41] Vasily Kishkin
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://www.mysql.com/doc/en/Making_trace_files.html

Once you have generated a backtrace, please submit it to this bug
report and change the status back to 'Open'. Thank you for helping
us make our products better.
[21 Nov 2005 20:26] jose manuel enriquez
Hello, I also have this problem, but only when I execute the application from the VS. I attach trace files and my test case (VS project). Thanks.
[30 Nov 2005 11:19] willi muellner
Hello,
this is my first trial with .net Connector; it's the same environment, with the same
problem.
MSVP advises to use a 2rd party Connector, but this cannot be the solution.

Thank you
Willi
[16 Dec 2005 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[25 Sep 2006 6:50] Tiago Teixeira
Hi, 

I got this error today too, in this circunstances:

Computer: P4 3.2Ghz, Winxp sp2,vs2005,mysql v5.0.20, mysql connector 1.07

Environment: Application was last used, last friday (22-09-2006) and when application was reused again, this morning of monday, i got this error.

Solution: Application restarted and its ok.

Does anyone has more info about, how to solve this?

TIA,
Tiago Teixeira