Namespace InSite.Domain.Organizations
Namespaces
Classes
- OrganizationState
The When methods cannot be added to the OrganizationState class because the ASP.NET session state provider cannot serialize delegates over dynamic methods or methods outside the delegate creator's assembly. If you add these methods to OrganizationState class (which has instances stored in session state) then you'll get a run- time exception that says "Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted." That exception message is NOT helpful because the OrganizationState class is serializable and it is not a MarshalByRef object.