Ive installed the starterkit and placed an order, when i try to fetch it it tells me "Value cannot be null" but not telling me which value :
any ideas ?
using TeaCommerce.Api.Models;
using TeaCommerce.Umbraco.Web;
Guid g = new Guid("802E3B6A-200C-486A-8F66-84E96242EFD2");
long l = 1;
Order order = TC.GetOrder(l, g);
The code you have posted - where is that? In a console application or? Because maybe some of the config that Umbraco normally does - isnt done you you just run a console application.
Fetching order from C# (tc 2)
Hey :)
Ive installed the starterkit and placed an order, when i try to fetch it it tells me "Value cannot be null" but not telling me which value :
any ideas ?
The code you have posted - where is that? In a console application or? Because maybe some of the config that Umbraco normally does - isnt done you you just run a console application.
Kind regards
Anders
Arh sry Anders :)
Its in a website application, where ive just inserted the umbracoDbDSN key in webconfig.
This was enough for TC 1 to work with the API.
Well that is not enough anymore because 2.x is a but more flexible and smart that 1.x :)
Here is what you need to do in some start up event of you website. We have it in the ApplicationBase (4.7+) of Umbraco is the Umbraco CMS system.
http://our.umbraco.org/documentation/Reference/Events/application-startup
The assembly files (.dll) also needs to be in your applications bin folder.
And stuff works :) thx
is working on a reply...