Mysql Direct on compact framework 2 errors

Mysql Direct on compact framework 2 errors

Postby nickwood » Tue 03 Jan 2006 01:02

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
nickwood
 
Posts: 4
Joined: Mon 22 Aug 2005 01:13

Postby Serious » Tue 03 Jan 2006 07:42

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

Still Not Working

Postby nickwood » Thu 12 Jan 2006 04:18

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?
nickwood
 
Posts: 4
Joined: Mon 22 Aug 2005 01:13

Postby Serious » Thu 12 Jan 2006 09:45

Check also whether old assemblies are left in the GAC.
Did you check what assemblies VisualStudio loads?
Serious
 


Return to dotConnect for MySQL