Quantcast
Viewing all articles
Browse latest Browse all 764

Problems with Csla.ApplicatinContext in WCF service

I've created a WCF service that has a method that performs several things including async calls to populate a few CSLA collections.

I store a value in Csla.AppicationContext.ClientContext that is used in my DAL.

What I have occuring is that in my WCF service method, at least the first call to a CSLA object the ApplicationContext is correct, but on a call to a later CSLA object the ApplicationContext has been cleared.

I've followed what was written in the CSLA 2008 book to include the CredentialValidator and PrincipalPolicy classes which seem to work great because I always have the correct Principal throughout all the calls in my service method. I've installed the Nuget package of csla-core and csla-web.asp.net.

I'm looking for a way to retain the Csla.ApplicaitonContext within my various CSLA calls in my WCF service method.

EDIT

I've discovered that by removing the csla-asp.net nuget package -- which removes the CSLA.Web dll -- it now works. I was under the impression that CSLA.Web was necessary to for CSLA.ApplicationContext to be correct?


Viewing all articles
Browse latest Browse all 764

Trending Articles