Server Error in '/' Application.

This SqlTransaction has completed; it is no longer usable.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: This SqlTransaction has completed; it is no longer usable.

Source Error:


Line 6:      <div class="subpage-search__inside container-fluid">
Line 7:          <div class="subpage-search__fields">
Line 8:              @Component.Invoke("SearchForm")
Line 9:          </div>
Line 10:         <div class="subpage-search__toggler">

Source File: D:\Solutions\S_Umb_SkiNetworks_Live\Views\nortlander\Partials\SubpageSearch.cshtml    Line: 8

Stack Trace:


[InvalidOperationException: This SqlTransaction has completed; it is no longer usable.]
   System.Data.SqlClient.SqlTransaction.ZombieCheck() +95
   System.Data.SqlClient.SqlTransaction.Commit() +86
   Umbraco.Core.Persistence.Database.CleanupTransaction() +67
   Umbraco.Core.Persistence.Database.CompleteTransaction() +21
   Umbraco.Core.Scoping.Scope.DisposeLastScope() +173
   Umbraco.Core.Scoping.Scope.Dispose() +89
   Umbraco.Core.Persistence.UnitOfWork.ScopeUnitOfWork.DisposeResources() +74
   Umbraco.Core.DisposableObjectSlim.Dispose(Boolean disposing) +132
   Umbraco.Core.DisposableObjectSlim.Dispose() +21
   Umbraco.Core.Services.ContentService.GetAncestors(IContent content) +614
   Danski.ExtensionMethods.<>c__DisplayClass0_0.<GetBrandId>b__0() +160
   Danski.Caching.LiteCache.InvokeAndReturnAction(Func`1 action) +101
   Danski.Caching.LiteCache.Get(Int32 brandId, String key, Func`1 action, TimeSpan timeSpan) +581
   Danski.ExtensionMethods.ContentExtensionMethods.GetBrandId(IContent content) +335
   Danski.Services.ApiImageService..ctor() +1286
   lambda_method(Closure , Object[] ) +72
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +250

[DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ApiImageService'. ---> This SqlTransaction has completed; it is no longer usable. (See inner exception for details.)]
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +794
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +85
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +110

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ApiImageService (ReflectionActivator), Services = [Danski.Services.ApiImageService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ApiImageService'. ---> This SqlTransaction has completed; it is no longer usable. (See inner exception for details.) (See inner exception for details.)]
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +433
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +154
   Autofac.Core.Resolving.InstanceLookup.Execute() +166
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +119
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +85
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +110

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = HotelService (ReflectionActivator), Services = [Danski.Services.HotelService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ApiImageService (ReflectionActivator), Services = [Danski.Services.ApiImageService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ApiImageService'. ---> This SqlTransaction has completed; it is no longer usable. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)]
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +433
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +154
   Autofac.Core.Resolving.InstanceLookup.Execute() +166
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +119
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +85
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +110

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SearchService (ReflectionActivator), Services = [Danski.Services.SearchService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = HotelService (ReflectionActivator), Services = [Danski.Services.HotelService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ApiImageService (ReflectionActivator), Services = [Danski.Services.ApiImageService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ApiImageService'. ---> This SqlTransaction has completed; it is no longer usable. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)]
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +433
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +154
   Autofac.Core.Resolving.InstanceLookup.Execute() +166
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
   Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() +119
   Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +85
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +110

[DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SearchFormViewComponent (ReflectionActivator), Services = [Danski.Website.ViewComponents.Search.SearchFormViewComponent], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = SearchService (ReflectionActivator), Services = [Danski.Services.SearchService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = HotelService (ReflectionActivator), Services = [Danski.Services.HotelService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ApiImageService (ReflectionActivator), Services = [Danski.Services.ApiImageService], Lifetime = Autofac.Core.Lifetime.MatchingScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ApiImageService'. ---> This SqlTransaction has completed; it is no longer usable. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.)]
   Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +433
   Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare(Guid id, Func`1 creator) +154
   Autofac.Core.Resolving.InstanceLookup.Execute() +166
   Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +171
   Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +108
   Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance) +122
   Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +70
   Autofac.ResolutionExtensions.Resolve(IComponentContext context, Type serviceType) +70
   Danski.Web.Mvc.ViewComponents.AutofacViewComponentActivator.Create(ViewComponentContext context) +240
   DisPlay.Umbraco.Web.Mvc.ViewComponents.DefaultViewComponentFactory.CreateViewComponent(ViewComponentContext context) in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Web\Mvc\ViewComponents\DefaultViewComponentFactory.cs:48
   DisPlay.Umbraco.Web.Mvc.ViewComponents.<InvokeAsyncCore>d__4.MoveNext() in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Web\Mvc\ViewComponents\DefaultViewComponentInvoker.cs:54
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
   DisPlay.Umbraco.Web.Mvc.ViewComponents.<InvokeAsync>d__3.MoveNext() in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Web\Mvc\ViewComponents\DefaultViewComponentInvoker.cs:42
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +68
   System.Runtime.CompilerServices.TaskAwaiter.GetResult() +27
   DisPlay.Umbraco.Tasks.<<RunSync>b__0>d.MoveNext() in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Tasks\AsyncHelpers.cs:31

[AggregateException: One or more errors occurred.]
   DisPlay.Umbraco.Tasks.ExclusiveSynchronizationContext.BeginMessageLoop() in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Tasks\AsyncHelpers.cs:123
   DisPlay.Umbraco.Tasks.AsyncHelpers.RunSync(Func`1 task) in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Tasks\AsyncHelpers.cs:38
   DisPlay.Umbraco.Web.Mvc.ViewComponents.DefaultViewComponentHelper.InvokeCore(ViewComponentDescriptor descriptor, Object arguments) in D:\git\umbraco-baseline\src\DisPlay.UmbracoBaseline.Core\Web\Mvc\ViewComponents\DefaultViewComponentHelper.cs:86
   ASP._Page_Views_nortlander_Partials_SubpageSearch_cshtml.Execute() in D:\Solutions\S_Umb_SkiNetworks_Live\Views\nortlander\Partials\SubpageSearch.cshtml:8
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +194
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +136
   ASP._Page_Views_Destination_cshtml.Execute() in D:\Solutions\S_Umb_SkiNetworks_Live\Views\Destination.cshtml:19
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +89
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +194
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +674
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +224
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4081.0