Page 1 of 1

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

Posted: Sun 05 Dec 2010 14:33
by munsh
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:















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

Posted: Mon 06 Dec 2010 14:16
by AndreyR
Have you added Devart.Data.dll? It is necessary as well, this information is available here.
I have deleted your duplicate post.

Posted: Tue 07 Dec 2010 21:19
by munsh
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?

Posted: Wed 08 Dec 2010 09:46
by AndreyR
You are using a wrong type in provider configuration. There should be Devart.Data.MySql.MySqlProviderFactory instead of Devart.Data.MySql.MySqlConnection.

Posted: Fri 10 Dec 2010 08:52
by munsh
Thank you very much. That solved the problem. Not sure where I picked up the incorrect values.