Page 1 of 1

Mysql Direct on compact framework 2 errors

Posted: Tue 03 Jan 2006 01:02
by nickwood
Hi all

I am using the trial mobile edition in vs.net 2005

When I add a connection to the form and enter all the connection properties then hit the dropdown box for the list of databases on the server I get the following error:

"Unable to cast object of type 'Corelab.MySql.MySqlConnection' to type 'Corelab.MySql.MySqlConnection'"

And thats as far as I can get?

I have recently changed to 2005 and this project is way past due as it is, any help would be very much appreciated.

Regards

nick

Posted: Tue 03 Jan 2006 07:42
by Serious
Usually the problems you've specified occurs when old assemblies are left in your system. Check if you have CoreLab.MySql.dll assembly in the project folder. If you do, delete it.

To locate old assemblies run VS, open your project and reproduce the problem. Start another instance of Visual Studio, attach debugger to previous one, open 'Modules' window and find all CoreLab.* assemblies. Make sure that all these assemblies have same version.

Still Not Working

Posted: Thu 12 Jan 2006 04:18
by nickwood
I have tried deleting all instances of the CoreLab.MySql.dll file in my project folder.

But I am not sure how else to check

I had the previous version but removed it before installing the new version.

Is there anything else that anyone can suggest?

Posted: Thu 12 Jan 2006 09:45
by Serious
Check also whether old assemblies are left in the GAC.
Did you check what assemblies VisualStudio loads?