Subject: ASP.NET SessionState issue with UltimateSAML using EasySaml namespace Date: 2019-10-04 17:02:56 From: mferland Source: asp-net-sessionstate-issue-ultimatesaml-using-easysaml-namespace ---------------------------------------------------------------------- Hello, We ran into an issue using the UltimateSaml library. The code is not working when using sessionState mode="StateServer" (rather than InProc). The error is thrown when calling the method below: **Saml.IdentityProvider.InitiateSingleSignOn()** The exception is: **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.** It seems that the library puts an object in the Session object which is not marked as Serializable. We are currently evaluating your solution and this is a no-go for us. We can not change the sessionState to 'InProc' in our application. Is there any way to fix this issue? Thanks, Michel ---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index