CustomerContext from Windows Service

pme
Member since: 2009
 

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
  • pme
    Member since: 2009
     

    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