Error

{
  "name": "ApolloError",
  "graphQLErrors": [
    {
      "message": "Error trying to resolve field 'legal'.",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "legal"
      ],
      "extensions": {
        "code": "AGGREGATE",
        "codes": [
          "AGGREGATE",
          "INVALID_OPERATION"
        ],
        "details": "GraphQL.Execution.UnhandledError: Error trying to resolve field 'legal'.\r\n ---> System.AggregateException: One or more errors occurred. (Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects) (Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects) (Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects) (Stack empty.) (Stack empty.)\r\n ---> System.InvalidOperationException: Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.CreateCommand()\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.<>c__DisplayClass2_0.<Load>b__0()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.Load(ContentReference contentLink, Int32 languageBranchID)\r\n   at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)\r\n   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)\r\n   --- End of inner exception stack trace ---\r\n   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)\r\n   at System.Linq.Parallel.AsynchronousChannelMergeEnumerator`1.MoveNextSlowPath()\r\n   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()\r\n   at Lennar.Web.Classes.ContentManager.GetAll[T](IEnumerable`1 list) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 490\r\n   at Lennar.Web.GraphQl.PublicApi.Types.LegalGraph.Fill(String code) in D:\\a\\1\\s\\Source\\Lennar.Web\\GraphQl\\PublicApi\\Types\\Legal.cs:line 42\r\n   at Lennar.Web.GraphQl.PublicApi.Queries.LegalQuery.Resolve(IResolveFieldContext context) in D:\\a\\1\\s\\Source\\Lennar.Web\\GraphQl\\PublicApi\\Queries\\LegalQuery.cs:line 20\r\n   at Lennar.Web.GraphQl.Core.RootFieldType`2.ResolveWithValidation(IResolveFieldContext context) in D:\\a\\1\\s\\Source\\Lennar.Web\\GraphQl\\Core\\RootFieldType.cs:line 39\r\n   at GraphQL.Resolvers.FuncFieldResolver`1.<>c__DisplayClass1_0.<.ctor>b__0(IResolveFieldContext context) in /_/src/GraphQL/Resolvers/FuncFieldResolver.cs:line 25\r\n   at GraphQL.Execution.ExecutionStrategy.ExecuteNodeAsync(ExecutionContext context, ExecutionNode node)\r\n ---> (Inner Exception #1) System.InvalidOperationException: Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.CreateCommand()\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.<>c__DisplayClass2_0.<Load>b__0()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.Load(ContentReference contentLink, Int32 languageBranchID)\r\n   at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)\r\n   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n ---> (Inner Exception #2) System.InvalidOperationException: Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.CreateCommand()\r\n   at EPiServer.DataAccess.Internal.ContentVersionDB.<>c__DisplayClass5_0.<List>b__0()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentVersionDB.List(VersionFilter filter, Int32 startIndex, Int32 maxRows, Int32& totalCount)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.<>c__DisplayClass38_0.<List>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n ---> (Inner Exception #3) System.InvalidOperationException: Stack empty.\r\n   at System.Collections.Generic.Stack`1.ThrowForEmptyStack()\r\n   at EPiServer.Data.Providers.Internal.ConnectionScope.Dispose()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.Load(ContentReference contentLink, Int32 languageBranchID)\r\n   at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)\r\n   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n ---> (Inner Exception #4) System.InvalidOperationException: Stack empty.\r\n   at System.Collections.Generic.Stack`1.ThrowForEmptyStack()\r\n   at EPiServer.Data.Providers.Internal.ConnectionScope.Dispose()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentVersionDB.List(VersionFilter filter, Int32 startIndex, Int32 maxRows, Int32& totalCount)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.<>c__DisplayClass38_0.<List>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n   --- End of inner exception stack trace ---"
      }
    }
  ],
  "protocolErrors": [],
  "clientErrors": [],
  "networkError": null,
  "message": "Error trying to resolve field 'legal'.",
  "cause": {
    "message": "Error trying to resolve field 'legal'.",
    "locations": [
      {
        "line": 2,
        "column": 3
      }
    ],
    "path": [
      "legal"
    ],
    "extensions": {
      "code": "AGGREGATE",
      "codes": [
        "AGGREGATE",
        "INVALID_OPERATION"
      ],
      "details": "GraphQL.Execution.UnhandledError: Error trying to resolve field 'legal'.\r\n ---> System.AggregateException: One or more errors occurred. (Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects) (Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects) (Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects) (Stack empty.) (Stack empty.)\r\n ---> System.InvalidOperationException: Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.CreateCommand()\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.<>c__DisplayClass2_0.<Load>b__0()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.Load(ContentReference contentLink, Int32 languageBranchID)\r\n   at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)\r\n   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)\r\n   --- End of inner exception stack trace ---\r\n   at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)\r\n   at System.Linq.Parallel.AsynchronousChannelMergeEnumerator`1.MoveNextSlowPath()\r\n   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()\r\n   at Lennar.Web.Classes.ContentManager.GetAll[T](IEnumerable`1 list) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 490\r\n   at Lennar.Web.GraphQl.PublicApi.Types.LegalGraph.Fill(String code) in D:\\a\\1\\s\\Source\\Lennar.Web\\GraphQl\\PublicApi\\Types\\Legal.cs:line 42\r\n   at Lennar.Web.GraphQl.PublicApi.Queries.LegalQuery.Resolve(IResolveFieldContext context) in D:\\a\\1\\s\\Source\\Lennar.Web\\GraphQl\\PublicApi\\Queries\\LegalQuery.cs:line 20\r\n   at Lennar.Web.GraphQl.Core.RootFieldType`2.ResolveWithValidation(IResolveFieldContext context) in D:\\a\\1\\s\\Source\\Lennar.Web\\GraphQl\\Core\\RootFieldType.cs:line 39\r\n   at GraphQL.Resolvers.FuncFieldResolver`1.<>c__DisplayClass1_0.<.ctor>b__0(IResolveFieldContext context) in /_/src/GraphQL/Resolvers/FuncFieldResolver.cs:line 25\r\n   at GraphQL.Execution.ExecutionStrategy.ExecuteNodeAsync(ExecutionContext context, ExecutionNode node)\r\n ---> (Inner Exception #1) System.InvalidOperationException: Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.CreateCommand()\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.<>c__DisplayClass2_0.<Load>b__0()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.Load(ContentReference contentLink, Int32 languageBranchID)\r\n   at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)\r\n   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n ---> (Inner Exception #2) System.InvalidOperationException: Cannot create a command without an existing connection, you can use DbFactory to create stand-alone command objects\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.CreateCommand()\r\n   at EPiServer.DataAccess.Internal.ContentVersionDB.<>c__DisplayClass5_0.<List>b__0()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentVersionDB.List(VersionFilter filter, Int32 startIndex, Int32 maxRows, Int32& totalCount)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.<>c__DisplayClass38_0.<List>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n ---> (Inner Exception #3) System.InvalidOperationException: Stack empty.\r\n   at System.Collections.Generic.Stack`1.ThrowForEmptyStack()\r\n   at EPiServer.Data.Providers.Internal.ConnectionScope.Dispose()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentLoadDB.Load(ContentReference contentLink, Int32 languageBranchID)\r\n   at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector)\r\n   at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content)\r\n   at EPiServer.Core.Internal.DefaultContentLoader.Get[T](ContentReference contentLink, LoaderOptions loaderOptions)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n ---> (Inner Exception #4) System.InvalidOperationException: Stack empty.\r\n   at System.Collections.Generic.Stack`1.ThrowForEmptyStack()\r\n   at EPiServer.Data.Providers.Internal.ConnectionScope.Dispose()\r\n   at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass26_0`1.<Execute>b__0()\r\n   at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n   at EPiServer.DataAccess.Internal.ContentVersionDB.List(VersionFilter filter, Int32 startIndex, Int32 maxRows, Int32& totalCount)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.<>c__DisplayClass38_0.<List>b__0()\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy)\r\n   at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy)\r\n   at EPiServer.DataAbstraction.Internal.DefaultContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at EPiServer.Core.Internal.ProviderAwareContentVersionRepository.LoadCommonDraft(ContentReference contentLink, String language)\r\n   at Lennar.Web.Classes.ContentManager.<>c__DisplayClass40_1`1.<GetAll>b__2(ContentReference r) in D:\\a\\1\\s\\Source\\Lennar.Web\\Classes\\ContentManager.cs:line 485\r\n   at System.Linq.Parallel.PartitionedDataSource`1.ListContiguousIndexRangeEnumerator.MoveNext(T& currentElement, Int32& currentKey)\r\n   at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n   at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n   at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n--- End of stack trace from previous location ---\r\n   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)<---\r\n\r\n   --- End of inner exception stack trace ---"
    }
  }
}