No Instance field of a System.Data.Common.DbProviderFactory

No Instance field of a System.Data.Common.DbProviderFactory

Postby munsh » Sun 05 Dec 2010 14:33

I have been breaking my head to make this work client system. I have followed the instructions mentioned in the installation , license documentation.

I am using ADO.NET entity data model.

I am not sure what else I am missing, I have lost all my time in this. So any help would be great.


DLL's
Devart.Data.MySql.dll
Devart.Data.MySql.Entity.dll

Here is my App config file:










description="Devart dotConnect for MySQL"
type="Devart.Data.MySql.MySqlConnection, Devart.Data.MySql, Version=5.80.190.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />




Here is the exception I get:
System.InvalidOperationException: The requested .Net Framework Data Provider's implementation does not have an Instance field of a System.Data.Common.DbProviderFactory derived type.

I couldn't get pass beyond this point.

Many Thanks
Munsh
munsh
 
Posts: 3
Joined: Sun 05 Dec 2010 14:20

Postby AndreyR » Mon 06 Dec 2010 14:16

Have you added Devart.Data.dll? It is necessary as well, this information is available here.
I have deleted your duplicate post.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby munsh » Tue 07 Dec 2010 21:19

I tried Devart.Data.dll and still it does not work.

In my dev pc if I remove the dbproviders configuration it works. However in client PC if I remove that I get provider not found message.

I couldn't attach my sample to show what I am doing. Any directions please?
munsh
 
Posts: 3
Joined: Sun 05 Dec 2010 14:20

Postby AndreyR » Wed 08 Dec 2010 09:46

You are using a wrong type in provider configuration. There should be Devart.Data.MySql.MySqlProviderFactory instead of Devart.Data.MySql.MySqlConnection.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby munsh » Fri 10 Dec 2010 08:52

Thank you very much. That solved the problem. Not sure where I picked up the incorrect values.
munsh
 
Posts: 3
Joined: Sun 05 Dec 2010 14:20


Return to dotConnect for MySQL