I have been using 2.8 pro for sometime now with no problems. Today this error occures when I try to configure a data table. It also happens whne I try to configure a connection and when I click on the parameters tab while onfiguring a command.
HELP!!!
Mark
InvalidCastException:Specified Cast in not Valid
Sorry but your wrong in your assumption. No. I puchased the 2.8 pro last year. been using it all this time when this began to happen.Serious wrote:Probably you've updated MySQLDirect .NET.
Try to reinstall MySQLDirect .NET. Check before that MySQLDirect isn't installed and there are no CoreLab.MySql.dll, CoreLab.MySql.Addin.dll, CoreLab.MySql.Design.dll files in GAC.
I can tell you that it does not happen on windows forms applications. It seems only to occur with web form applications.
Here is what I have done to correct the problem. I uninstalled MySQLDirect .NET. Went in to the reg and removed all entries with "corelab". I went in to "program files" and removed "Corelab" Folder. And I went to the GAC Folder and made sure no corelab assemblies were there.
I then Rebooted and purchased the upgrade version 3.0 and installed it. I then opened up my project and double clicked on a mysqlconnection and got the very same error.
In addition to the popup error, in the tasks list this came up:
Code generation for property 'Parameters' failed. Error was: ''MySqlParameterConverter' is unable to convert 'CoreLab.MySql.MySqlParameter' to 'System.ComponentModel.Design.Serialization.InstanceDescriptor'.'
Please help.
Thanks
Mark
Check you've deleted "%ProgramFiles%\Common Files\CoreLab" folder before installing new version of MySQLDirect .NET.
If this doesn't help:
1. Start visual studio, reproduce the problem (perform required actions to receive an error message you've specified).
2. Start another instance of visual studio and attach debugger to previous one.
3. Open 'Modules' window and make sure that all CoreLab.* assemblies have 3.0.2 version, and CoreLab.DbTools.Interfaces have 1.21 version.
4. Go to GAC (%WINDIR%\assembly) and check CoreLab.* assembies versions are as I've described in step 3.
If this doesn't help:
1. Start visual studio, reproduce the problem (perform required actions to receive an error message you've specified).
2. Start another instance of visual studio and attach debugger to previous one.
3. Open 'Modules' window and make sure that all CoreLab.* assemblies have 3.0.2 version, and CoreLab.DbTools.Interfaces have 1.21 version.
4. Go to GAC (%WINDIR%\assembly) and check CoreLab.* assembies versions are as I've described in step 3.