Specifically I'm getting the error message when I try to utilize the uCommerce API from my test: System.Configuration.ConfigurationErrorsException : Could not autodiscover 'components.config'. Make sure it's present in the application folder.
You need to take the pipelines folder and the configuration folder from a running installation. find the two folders under /umbraco/ucommerce.
The error you're getting: "Could not autodiscover 'components.config'. Make sure it's present in the application folder. " Indicates that you haven't got the configuration files in order.
Please do that and see if you get any new errors :)
Had to do the following that wasn't covered in the article:
1. When using ReSharper test runner (nUnit), I had to remove the checkmark ReSharper > Options >Tools > Unit testing > Shadow-copy assemblies being tested (I feel kindda lucky that I found this!). While it was checked, I got the "System.Configuration.ConfigurationErrorsException : Could not autodiscover 'components.config'" error.
2. Since I'm using Umbraco 7, one of the dlls in the list in the article is called UCommerce.Umbraco7.dll rather than UCommerce.Umbraco.dll (that was easy mystery to solve).
3. I had to include the UCommerce.RazorStore.dll as well.
4. I had to include the Infralution.Licensing.dll file.
5. The connection string is different than in the article. Just copy the one from your web.config.
Hope this helps someone :-)
uCommerce guys: Should these extra dll files be unnecessary for the test project to work?
Unit/integration test project for uCommerce
Hi,
Can anyone tell me, what I need to include in a Visual Studio test project in order to be able to use the uCommerce (stateless) API from my test.
I've tried taking a look at the "Use API in apps" http://docs.ucommerce.net/ucommerce/v6/system-integration/enable-api-outside-web-context.html page, but I just can't seem to get it working.
Specifically I'm getting the error message when I try to utilize the uCommerce API from my test: System.Configuration.ConfigurationErrorsException : Could not autodiscover 'components.config'. Make sure it's present in the application folder.
I'm using uCommerce 6.0.3.14141 in Umbraco 7.1.6.
Hi,
You've skipped a very essential part of the docs.
You need to take the pipelines folder and the configuration folder from a running installation. find the two folders under /umbraco/ucommerce.
The error you're getting: "Could not autodiscover 'components.config'. Make sure it's present in the application folder. " Indicates that you haven't got the configuration files in order.
Please do that and see if you get any new errors :)
Hope this helps, otherwise let me know!
Best regards
Morten
Hi Morten
Thanks for your feedback. I'll give it another (thorougher) go and post back to the forum either way.
It's good to know that it's the correct way to go... :-)
/Marianne
Finally got it working
Had to do the following that wasn't covered in the article:
1. When using ReSharper test runner (nUnit), I had to remove the checkmark ReSharper > Options >Tools > Unit testing > Shadow-copy assemblies being tested (I feel kindda lucky that I found this!). While it was checked, I got the "System.Configuration.ConfigurationErrorsException : Could not autodiscover 'components.config'" error.
2. Since I'm using Umbraco 7, one of the dlls in the list in the article is called UCommerce.Umbraco7.dll rather than UCommerce.Umbraco.dll (that was easy mystery to solve).
3. I had to include the UCommerce.RazorStore.dll as well.
4. I had to include the Infralution.Licensing.dll file.
5. The connection string is different than in the article. Just copy the one from your web.config.
Hope this helps someone :-)
uCommerce guys: Should these extra dll files be unnecessary for the test project to work?
is working on a reply...