Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode while using Itextsharp 5.5.1.0

206 Views Asked by At

I Got below error while using session state SQL server with itextsharpt dll version 5.5.1.0. I am using asp.net 4.0 web application.

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. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.

I am using below configuration for session state

cookieless="AutoDetect" cookieName="MYCookie" mode="SQLServer" regenerateExpiredSessionId="false"

How can we Serialize third party dll like itextsharp.

0

There are 0 best solutions below