Unhandled Exception: System.FormatException: Input string was not in a correct format.

Hi,

I routinely run a import script written in VB that connects to my MYSQL server and imports data into tables.

I did not write this script, nor am I familiar with the Visual Basic scripting language. So I would really appreciate some help.

Our MYSQL database is hosted and managed in the cloud. Our hosting providers recently upgraded our server to 4.0.16. ( I know it's old).. however after the upgrade my script is not working please find my error message below.. please can someone help?

Connecting to MySQL...
server=83.x.x.x;user=x.x.x.x;database=swdata;port=5002;password=x.x.x.x

Unhandled Exception: System.FormatException: Input string was not in a correct f
ormat.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffe
r& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo in
fo)
   at MySql.Data.Common.DBVersion.Parse(String versionString)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at Daily_Report.Daily_Report.Main() in C:\scripts\daily\\Module1.vb:line 69
LVL 2
Dan560Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
What is on line 69?
0
Dan560Author Commented:
DBconnection1.Open()
0
CodeCruiserCommented:
Can you show some more code? The connection string you showed above and surrounding code.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Dan560Author Commented:
please find the attached code.
0
Dan560Author Commented:
0
CodeCruiserCommented:
This is VB.NET not VBScript.

Well it seems to be a problem in connection string but that looks alright as well.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dan560Author Commented:
ok apologies for posting in the wrong forum
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.