We store Entity Framework POCO objects in session and we have the ProxyCreationEnabled set to True.We have no problem serializing or deserializing the session except when the app pool restarts. It throws an error " Unable to load type System.Data.Entity.DynamicProxies.User_BEBEEB3C76C0999BF9A2B6F808EF066F350ADF3D85291467CF1F38C56777DA8A required for deserialization."
Any thoughts on why this is happening? Also, can we get away with having dynamic proxies in session if we are planning to load balance the code across more than one web server?
Thanks!