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


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...

Unhandled Exception: System.FormatException: Input string was not in a correct f
   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
   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
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.

What is on line 69?
Dan560Author Commented:
Can you show some more code? The connection string you showed above and surrounding code.
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

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

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

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
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.