Page 1 of 1

Licence issues with Unit tests

Posted: Thu 09 Jun 2011 18:31
by DabblerNL
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?

Posted: Fri 10 Jun 2011 08:39
by AndreyR
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.

I have done that

Posted: Fri 10 Jun 2011 08:50
by DabblerNL
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:

Posted: Fri 10 Jun 2011 13:18
by AndreyR
"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?