{"action":"opened","issue":{"url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2296","labels_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2296/labels{/name}","comments_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2296/comments","events_url":"https://api.github.com/repos/bleroy/OrchardImportTest/issues/2296/events","html_url":"https://github.com/bleroy/OrchardImportTest/issues/2296","id":66174216,"number":2296,"title":"TransactionScope / object disposed","user":{"login":"bleroy","id":1165609,"avatar_url":"https://avatars.githubusercontent.com/u/1165609?v=3","gravatar_id":"","url":"https://api.github.com/users/bleroy","html_url":"https://github.com/bleroy","followers_url":"https://api.github.com/users/bleroy/followers","following_url":"https://api.github.com/users/bleroy/following{/other_user}","gists_url":"https://api.github.com/users/bleroy/gists{/gist_id}","starred_url":"https://api.github.com/users/bleroy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleroy/subscriptions","organizations_url":"https://api.github.com/users/bleroy/orgs","repos_url":"https://api.github.com/users/bleroy/repos","events_url":"https://api.github.com/users/bleroy/events{/privacy}","received_events_url":"https://api.github.com/users/bleroy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-03T15:58:57Z","updated_at":"2015-04-03T15:58:57Z","closed_at":null,"body":"Had this three times today, on Autoroute fork merged up to latest 1.x. Seems\nto be the same stack trace each time, as follows. Always when making a change\nand then refreshing the page to trigger recompile. It definitely seems to be\nhappening less though!  \n  \n  \nServer Error in '/OrchardLocal' Application.  \n  \n  \nCannot access a disposed object.  \nObject name: 'TransactionScope'.  \nDescription: An unhandled exception occurred during the execution of the\ncurrent web request. Please review the stack trace for more information about\nthe error and where it originated in the code.  \n  \nException Details: System.ObjectDisposedException: Cannot access a disposed\nobject.  \nObject name: 'TransactionScope'.  \n  \nSource Error:  \n  \n  \n  \nLine 41: if (!_cancelled) {  \nLine 42: Logger.Debug(\"Marking transaction as complete\");  \nLine 43: _scope.Complete();  \nLine 44: }  \nLine 45:  \nSource File: G:\\Orchard\\Downplay\\src\\Orchard\\Data\\TransactionManager.cs\nLine: 43  \n  \nStack Trace:  \n  \n  \n  \n[ObjectDisposedException: Cannot access a disposed object.  \nObject name: 'TransactionScope'.]  \nSystem.Transactions.TransactionScope.Complete() +83955  \nOrchard.Data.TransactionManager.System.IDisposable.Dispose() in\nG:\\Orchard\\Downplay\\src\\Orchard\\Data\\TransactionManager.cs:43  \nAutofac.Core.Disposer.Dispose(Boolean disposing) +79  \nAutofac.Util.Disposable.Dispose() +46  \nAutofac.Core.Lifetime.LifetimeScope.Dispose(Boolean disposing) +57  \nAutofac.Util.Disposable.Dispose() +46  \nOrchard.Environment.DefaultOrchardHost.DisposeShellContext() in\nG:\\Orchard\\Downplay\\src\\Orchard\\Environment\\DefaultOrchardHost.cs:204  \nOrchard.Environment.DefaultOrchardHost.<MonitorExtensions>b__6(AcquireContext\n` 1 ctx) in\nG:\\Orchard\\Downplay\\src\\Orchard\\Environment\\DefaultOrchardHost.cs:189  \nOrchard.Caching.Cache  ` 2.CreateEntry(TKey k, Func ` 2 acquire) in\nG:\\Orchard\\Downplay\\src\\Orchard\\Caching\\Cache.cs:57  \nOrchard.Caching.Cache  ` 2.UpdateEntry(CacheEntry currentEntry, TKey k, Func `\n2 acquire) in G:\\Orchard\\Downplay\\src\\Orchard\\Caching\\Cache.cs:33  \nOrchard.Caching.<>c__DisplayClass2.<Get>b__1(TKey k, CacheEntry currentEntry)\nin G:\\Orchard\\Downplay\\src\\Orchard\\Caching\\Cache.cs:21  \nSystem.Collections.Concurrent.ConcurrentDictionary  ` 2.AddOrUpdate(TKey key,\nFunc ` 2 addValueFactory, Func ` 3 updateValueFactory) +81  \nOrchard.Caching.Cache ` 2.Get(TKey key, Func ` 2 acquire) in\nG:\\Orchard\\Downplay\\src\\Orchard\\Caching\\Cache.cs:17  \nOrchard.Caching.DefaultCacheManager.Get(TKey key, Func ` 2 acquire) in\nG:\\Orchard\\Downplay\\src\\Orchard\\Caching\\DefaultCacheManager.cs:33  \nOrchard.Environment.DefaultOrchardHost.MonitorExtensions() in\nG:\\Orchard\\Downplay\\src\\Orchard\\Environment\\DefaultOrchardHost.cs:185  \nOrchard.Environment.DefaultOrchardHost.BeginRequest() in\nG:\\Orchard\\Downplay\\src\\Orchard\\Environment\\DefaultOrchardHost.cs:213  \nOrchard.Environment.DefaultOrchardHost.Orchard.Environment.IOrchardHost.BeginR\nequest() in\nG:\\Orchard\\Downplay\\src\\Orchard\\Environment\\DefaultOrchardHost.cs:78  \nOrchard.Web.MvcApplication.HostBeginRequest(HttpApplication application,\nIOrchardHost host) in G:\\Orchard\\Downplay\\src\\Orchard.Web\\Global.asax.cs:38  \nOrchard.WarmupStarter.Starter  ` 1.OnBeginRequest(HttpApplication application)\nin G:\\Orchard\\Downplay\\src\\Orchard.WarmupStarter\\Starter.cs:68  \nOrchard.Web.MvcApplication.Application_BeginRequest() in\nG:\\Orchard\\Downplay\\src\\Orchard.Web\\Global.asax.cs:29  \n  \n[TargetInvocationException: Exception has been thrown by the target of an\ninvocation.]  \nSystem.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object\ntarget, Object[] arguments, SignatureStruct& sig, MethodAttributes\nmethodAttributes, RuntimeType typeOwner) +0  \nSystem.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object\ntarget, Object[] arguments, Signature sig, MethodAttributes methodAttributes,\nRuntimeType typeOwner) +72  \nSystem.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags\ninvokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean\nskipVisibilityChecks) +335  \nSystem.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags\ninvokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28  \nSystem.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19  \nSystem.Web.Util.ArglessEventHandlerProxy.Callback(Object sender, EventArgs e)\n+57  \nSystem.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Ex\necute() +148  \nSystem.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&\ncompletedSynchronously) +75  \n  \n  \nVersion Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET\nVersion:4.0.30319.237  \n\nWork Item Details\n--------------------\n**Original CodePlex Issue:**\t[Issue 18406](http://orchard.codeplex.com/workitem/18406)\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tFeb 3, 2012 at 5:03 PM\n**Reported by:**\trandompete\n**Updated on:**\tFeb 8, 2012 at 7:48 PM\n**Updated by:**\tBertrandLeRoy\n**Closed on:**\tFeb 8, 2012 at 7:48 PM\n**Closed by:**\tBertrandLeRoy\n**Status:**\tClosed\n**Reason Closed:**\tUnassigned\n**Assigned to:**\tUnassigned\n**Reported on:**\tFeb 3, 2012 at 5:03 PM\n**Reported by:**\trandompete\n**Updated on:**\tFeb 8, 2012 at 7:48 PM\n**Updated by:**\tBertrandLeRoy\n**Closed on:**\tFeb 8, 2012 at 7:48 PM\n**Closed by:**\tBertrandLeRoy\n"}}