Mysql Direct on compact framework 2 errors

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
nickwood
Posts: 4
Joined: Mon 22 Aug 2005 01:13

Mysql Direct on compact framework 2 errors

Post by 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

Serious

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

nickwood
Posts: 4
Joined: Mon 22 Aug 2005 01:13

Still Not Working

Post by 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?

Serious

Post by Serious » Thu 12 Jan 2006 09:45

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

Post Reply