Setup:
Windows 7 SP1 64 bit Visual Studio 2012 MySQL .Net Connector 6.6.4
I have a vb .net WinForm app which connects to a MySQL server using the MySQL .Net Connector. It was working perfectly. I then formatted the pc, reinstalled the same version of windows as before, but I installed a slightly newer version of the MySQL .Net Connector, as well as Visual Studio 2012 instead of 2010.
When the code where I open the connection executes, i.e.:
Dim mySQLcon As New MySql.Data.MySqlClient.MySqlConnection("SERVER=www.tadirect.co.za;DATABASE=tadirq_db1;UID=********;PASSWORD=********;")
mySQLcon.Open()
At the mySQLcon.Open() line I get the following exception:
System.OverflowException: Arithmetic operation resulted in an overflow at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.HandleAuthChange(MySqlPacket packet)
at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Authenticate(String authMethod, Boolean reset)
at MySql.Data.MySqlClient.NativeDriver.Open() at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at TAD_Automator.modWebsite.UpdateMySQLDatabase_Cases(Boolean bSilent)}
I have tried changing the build from Any CPU to 32 bit as well as 64 bit but it made no difference...
Any ideas? It used to work before I reinstalled Windows/VS/MySQL...