CSLA 4 ApplicationContext in ASP.NET host

The ApplicationContext object must be managed differently in ASP.NET than other environments. In CSLA 4, Csla.dll doesn't (can't) reference System.Web.dll, so correct management of ApplicationContext for ASP.NET is in Csla.Web.dll. All ASP.NET hosted code must reference Csla.Web.dll to function correctly in CSLA 4. More info...


Using a web host to run a CSLA .NET app

I'm trying to run my Csla web application on a hosted web server, but I'm getting SecurityExceptions stating that the assembly does not allow partially trusted callers.

Answer: Csla requires full trust to run because of its use of reflection, dynamic method invocation, WCF and/or Remoting and other high-end .NET features. You'll need to grant Csla full trust to run. Please see this thread for more details.

Here are a list of hosting sites that may provide full trust:


Type is not resolved for custom principal in web app

I'm getting a System.Runtime.Serialization.SerializationException: Type is not resolved for member 'MyProject.MyLibrary.MyCustomPrincipal, MyProject.MyLibrary' in my Asp.Net application.

Answer: You are likely running the application through Cassini (the ASP.NET Development Web Server) and not IIS. Due to limitations in Cassini, you cannot run Csla applications through it unless you install your assembly into the GAC. For more information please see the Install document and Rocky's explanation.


How can I use the ASP.NET provider model with a CSLA principal?



How do I sort/filter/page data with CslaDataSource?

This forum post has a good summary of the options.

All content and CSLA .NET is Copyright © 2009-2011 Marimer LLC