MySql.Data.MySqlClient.MySqlCommand ERROR

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
smokingjoe
Posts: 13
Joined: Wed Jul 22, 2015 4:20 am

MySql.Data.MySqlClient.MySqlCommand ERROR

Post by smokingjoe » Thu Aug 03, 2017 5:12 am

Powershell Studio 2017 Build 5.4.142

Operating system Windows 10x64 Enterprise

During this build of the IDE I see errors when doing the following two commands:
$ReadScanObjcmd = New-Object MySql.Data.MySqlClient.MySqlCommand
$ReadScanObjAdapter = New-Object MySql.Data.MySqlClient.MySqlDataAdapter

The rest of the code around this has been working for sometime so this is nothing new and should work fine. I loaded the same code in Windows Powershell ISE and it worked with no issues.

Finally out of frustration I uninstalled Powershell Studio 2017. I then re-installed to build
PowerShell Studio 2017 v5.4.139

Now I have NO issues. Something changed between the version and I get errors. Please let me know if I can provide any additional files.

User avatar
Alexander Riedel
Posts: 7214
Joined: Tue May 29, 2007 4:43 pm

Re: MySql.Data.MySqlClient.MySqlCommand ERROR

Post by Alexander Riedel » Thu Aug 03, 2017 5:43 am

The part that runs scripts has not changed really. It probably would help to know what exactly the errors are you are seeing.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

Re: MySql.Data.MySqlClient.MySqlCommand ERROR

Post by davidc » Thu Aug 03, 2017 7:53 am

Please update to the latest build (v5.4.143) and let us know if the issue persist.
David
SAPIEN Technologies, Inc.

User avatar
smokingjoe
Posts: 13
Joined: Wed Jul 22, 2015 4:20 am

Re: MySql.Data.MySqlClient.MySqlCommand ERROR

Post by smokingjoe » Thu Aug 03, 2017 8:37 am

Looks like that may have resolved the issue. Update failed but uninstalled and re-installed. Will post another update if I see more issues in the same area.