Licence issues with Unit tests

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
DabblerNL
Posts: 2
Joined: Thu 09 Jun 2011 18:21

Licence issues with Unit tests

Post by DabblerNL » Thu 09 Jun 2011 18:31

I have dotConnect for SQLite, which I can use in my code. However, the class.dll with the unit tests throws exception "error 0175: The specified store provider cannot be found in the configuration, or is not valid." When I run the licene wizard from the Tools menu the .dll gets a yellow question mark because it cannot determine which executable is using it.

How do I solve this?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 10 Jun 2011 08:39

You need to register the provider in the application configuration file to work with it.
There are two alternatives - either perform minimal installation on the machine Unit tests are being run on or register the provider in machine.config like it is described in our Deployment article.
P.S. I have deleted your duplicate posts.

DabblerNL
Posts: 2
Joined: Thu 09 Jun 2011 18:21

I have done that

Post by DabblerNL » Fri 10 Jun 2011 08:50

Hello Andrey,

Thanks for your reply. I read the article you mentioned and a minimal installation is present on my development computer. As I said: using the Entitymodel works without problems in all projects of my solution except in the project that contains the Unit tests. I get a yellow exclamation mark exclusively for this Project stating that it cannot be determined which executables will make use of it. I suppose that this means the testengine should get the licence too. The problem is inconvenient as I have now to use a workaround to test my application.

Regards,

André :wink:

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 10 Jun 2011 13:18

"The specified store provider cannot be found in the configuration, or is not valid" error is not associated with the licensing process.
It states that something is wrong with provider registration.
Please check that your machine.config contains the correct registration string.
Are your tests executed on the same machine that the rest project?

Post Reply