function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Session is not serializable

Hi There,
I am trying to store session in database in .Net project
when I run application I am getting this error  "'salesforce_payment.SforceService' in Assembly 'App_WebReferences.ldeop_29, Version=, Culture=neutral, PublicKeyToken=null' is not marked as serializable." i.e. 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.
How can I make salesforce wsdl(web service) serializable?
Thanks in advance
Store the sessionId & serverUrl in session, and not the stub object itself.
Thanks Simon