diff --git a/src/Orchard/Environment/State/ContextState.cs b/src/Orchard/Environment/State/ContextState.cs index 36c42d24e..f41887c6b 100644 --- a/src/Orchard/Environment/State/ContextState.cs +++ b/src/Orchard/Environment/State/ContextState.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Remoting; using System.Runtime.Remoting.Messaging; using System.Web; using Orchard.Mvc.Extensions; @@ -52,5 +51,12 @@ namespace Orchard.Environment.State { HttpContext.Current.Items[_name] = state; } } + + internal class ObjectHandle : System.Runtime.Remoting.ObjectHandle { + public ObjectHandle(object o) : base(o) { } + public override object InitializeLifetimeService() { + return null; + } + } } }