I have a WCF 4 service being consumed by an ASP.NET 3.5 (SharePoint 2010 actually) application.
Because we have implemented session support in the WCF service (ws2007HttpBinding)
to maintain some objects that are very expensive to intialize, I'm also trying to keep my service client reference persisted on the ASP.NET consumer-side. However in order to persist it across post-backs, I need to add it to the session (using SharePoint's
SQL SessionState provider), and this causes serialization (binary serialization) of the WCF service referece.
The ASP.NET application is throwing an error, because it cannot serialize the WCF service reference.
View Complete Post