Chemistry, energy and aquaculture

Our research area includes aquaculture, water quality, biogas production, RAS, medicinal chemistry and environmentally friendly energy applications. The research group have access to excellent laboratories in Bergen with advanced analytical equipment, as well as good collaboration with local and national partners.

The research group belongs to the Department of Safety, Chemical and Bioengineering at the Faculty of Engineering and Science.

Our work is based on some of the UN's Sustainable Development Goals:

  • 2: Zero hunger
  • 3: Good health and well-being
  • 4: Quality education
  • 6: Clean water and sanitation
  • 7: Affordable and clean energy
  • 13: Climate action
  • 14: Life below water

In addition, we lay emphasis on goal number 5 about gender equality.

Research is actively included in teaching, offering guidance to students from bachelor to Ph.D. level. The research is interdisciplinary and is divided into two groups: VAK (water, aquaculture and climate) and KJETEK (medicinal chemistry and energy storage materials in battery technology).

Head of research group

Error while rendering PersonWithImageBlock Sveinung Fivelstad

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Members (Scientific staff)

Error while rendering PersonWithImageBlock Camilla Diesen Hosfeld

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Jarle Sidney Diesen

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Kari-Grete Nordli Børve

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Kristin Kvamme

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Leila Jafari

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Marit Leiren

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

bilde av Rhiannon Tveiten Lewis

Rhiannon Tveiten Lewis

Associate Professor

Members (Engineers)

Error while rendering PersonWithImageBlock Anne Sophie Gerhardt

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Hilde Duesund Kløften

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Jone Totland

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31

Error while rendering PersonWithImageBlock Torun Skøld

A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.
at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection() at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken) at HVL.Employees.Repositories.EmployeeRepository.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Repositories\EmployeeRepository.cs:line 31 at HVL.Employees.Services.EmployeeIntegration.GetEmployeesByIdAsync(Int32 id, Boolean asNoTracking) in D:\a\1\s\source\HVL.Employees\Services\EmployeeIntegration.cs:line 32 at HVL.Providers.EmployeeProvider.EmployeeDataProvider.<>c__DisplayClass10_0.<<LoadContent>b__1>d.MoveNext() in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 --- End of stack trace from previous location --- at HVL.Providers.EmployeeProvider.EmployeeDataProvider.LoadContent(ContentReference contentLink, ILanguageSelector languageSelector) in D:\a\1\s\source\HVL\Providers\EmployeeProvider\EmployeeDataProvider.cs:line 57 at EPiServer.Core.ContentProvider.<>c__DisplayClass123_0.<LoadContentFromCacheOrRepository>b__0() at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThroughWithWait[T](IObjectInstanceCache cache, String cacheKey, Func`1 readValue, Func`2 evictionPolicy) at EPiServer.Framework.Cache.ObjectInstanceCacheExtensions.ReadThrough[T](IObjectInstanceCache cache, String key, Func`1 readValue, Func`2 evictionPolicy, ReadStrategy readStrategy) at EPiServer.Core.Internal.ContentInstanceCache.ReadThrough(ContentReference contentLink, String selectedLanguage, Func`1 readValue) at EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) at EPiServer.Core.Internal.ProviderPipelineImplementation.GetItem(ContentProvider provider, ContentReference contentLink, LoaderOptions loaderOptions) at EPiServer.Core.Internal.DefaultContentLoader.TryGet[T](ContentReference contentLink, LoaderOptions loaderOptions, T& content) at EPiServer.Core.Html.StringParsing.ContentFragment.GetContent(Boolean enableMasterLanguageFallback) at EPiServer.Core.Html.StringParsing.ContentFragment.GetSecurityDescriptor() at EPiServer.Core.Html.StringParsing.StringFragmentCollection.GetFilteredFragments(IPrincipal principal) at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.GetEmployeeDataIfExists(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 61 at HVL.Features.Components.PersonWithImage.PersonWithImageBlockController.InvokeComponentAsync(PersonWithImageBlock currentBlock) in D:\a\1\s\source\HVL\Features\Components\PersonWithImage\PersonWithImageBlockController.cs:line 21 at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsyncCore(ObjectMethodExecutor executor, Object component, ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker.InvokeAsync(ViewComponentContext context) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(ViewContext viewContext, IContentData contentData, TemplateModel templateModel, String templateTag) at EPiServer.Cms.AspNetCore.Mvc.Internal.DefaultMvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at EPiServer.Web.Mvc.MvcContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) at HVL.Business.Rendering.ErrorHandlingContentRenderer.RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel) in D:\a\1\s\source\HVL\Business\Rendering\ErrorHandlingContentRenderer.cs:line 31