We\'re using an Out-of-Process Session Provider (ScaleOut) for an ASP.NET application and we\'ve noticed that when an object that\'s not correctly setu
We were able to resolve this issue with the help of SOSS technical support – they were tremendously helpful – here are the details:
The remedies are as follows:
Fix the System.Exception-derived type (that’s serializable but not unserializable);
Remove Session_End events in Global.asax or disable the expiration events (max_event_retries set to 0 in soss_params.txt);
In these scenarios, it’s likely that the user encounters a SerializationException on one of their requests, meaning it reaches Application_Error; here you can clear the session keys (must clear all of them) or abandon the session outright;
Subscribe to AppDomain.UnhandledException to be notified of unhandled exceptions, should they occur (no recourse here, just logging); they can also be disabled via legacyUnhandledExceptionPolicy (not recommended);