System.FormatException when connecting to 5.0.22 MySQL using MySqlnet 355 pro 2 drivers
Posted: Wed 12 Mar 2008 18:44
Hello,
When trying to connect to 5.0.22 MySQL database using MySqlnet 355 pro 2 drivers, we are getting the following exception:
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at CoreLab.Common.Utils.TryParseInt(String s, Int32& pos)
at CoreLab.MySql.ab.g(String A_0)
at CoreLab.MySql.MySqlInternalConnection.get_ServerVersionNormalized()
at CoreLab.MySql.MySqlConnection.f()
at CoreLab.MySql.MySqlConnection.Open()
Any insights into the problem? The connection string looks like this:
"User Id=xxxx;Password=password;Port=5243;Host=hostname;Database=dbname"
Thanks!
When trying to connect to 5.0.22 MySQL database using MySqlnet 355 pro 2 drivers, we are getting the following exception:
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at CoreLab.Common.Utils.TryParseInt(String s, Int32& pos)
at CoreLab.MySql.ab.g(String A_0)
at CoreLab.MySql.MySqlInternalConnection.get_ServerVersionNormalized()
at CoreLab.MySql.MySqlConnection.f()
at CoreLab.MySql.MySqlConnection.Open()
Any insights into the problem? The connection string looks like this:
"User Id=xxxx;Password=password;Port=5243;Host=hostname;Database=dbname"
Thanks!