Try our conversational search powered by Generative AI!

CustomerContext from Windows Service

Vote:
 

I stole the configuration from the Quartz distribution that came with Commerce, so i guess the question is the same for Quartz Services. 

How do i hook up CustomerContext correctly in a windows service? I would like to be able to update information in the Customer Sub System.

The CustomerContext.Current is just full of TargetInvocation Exceptions ... don't just just love those exceptions (i really hope EPiServer soon realizes that these kind of exceptions are just bad practise)

#64363
Dec 18, 2012 14:22
Vote:
 

Yeah! No better feeling than solving it myself ....

Was just this little part missing:       

DataContext.Current = new DataContext(connectionString);

#64364
Dec 18, 2012 14:42
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.