You need to sign in to do that
Don't have an account?

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=0.0.0.0, 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
Cheers
Nila
Store the salesforce.com sessionId & serverUrl in session, and not the stub object itself.

Thanks Simon