Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Deadlock risk detected after upgrading database

Vote:
 

I upgraded a website from epi 6r2 to 7.5 and finally to last version 7.16
During this process i fixed all code related bugs.

After that i upraded the live database.
I installed a new epi 6r2 site, changed the connectionstring to live database and then just ran all upgrades through deployment center.
For the last uprade i used nuget package command: Update-EPiDatabase

When i change the connection string to use the upgraded live database instead of the dev database then i get a yellow screen of death>

So just changing the connection string crashes the site, if i change the connectionstring back to the upgraded dev database then everything works.
Anyone else had the same experience?

Error:
Server Error in '/' Application.

Deadlock risk detected. Trying to read a page from the same thread that is already trying to read the same page.

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: EPiServer.Core.EPiServerException: Deadlock risk detected. Trying to read a page from the same thread that is already trying to read the same page.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[EPiServerException: Deadlock risk detected. Trying to read a page from the same thread that is already trying to read the same page.]
   EPiServer.Core.OptimisticCache`1.TryRead(String cacheKey, TObject& item) +2285
   EPiServer.Core.OptimisticCache`1.Read(String cacheKey, ReadAndCacheObject`1 readAndCacheObject) +147
   EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) +945
   EPiServer.Core.DefaultContentLoader.TryGet(ContentReference contentLink, LoaderSettings loaderSettings, T& content) +669
   EPiServer.Core.DefaultContentLoader.Get(ContentReference contentLink, LoaderSettings loaderSettings) +90
   EPiServer.Core.d__6.MoveNext() +407
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +165
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +520
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +103
   EPiServer.Web.Routing.AncestorReferencesLoader.GetAncestors(ContentReference contentLink, AncestorLoaderRule rule) +363
   EPiServer.Web.Routing.Segments.DefaultUrlSegmentRouter.IsContentUnderRoot(ContentReference contentLink) +205
   EPiServer.Web.Routing.Segments.NodeSegment.GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values) +258
   EPiServer.Web.Routing.Segments.NodeSegment.GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values, HashSet`1 usedValues) +59
   EPiServer.Web.Routing.ContentRoute.AddVirtualPathFromSegments(StringBuilder virtualPath, RequestContext requestContext, RouteValueDictionary values, HashSet`1 usedValues, Int32 lastNonDefaultIndex) +118
   EPiServer.Web.Routing.ContentRoute.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values) +413
   EPiServer.Web.Routing.UrlResolver.GetUrlFromRoute(ContentReference contentRefernce, String language, RouteValueDictionary routeValues, RequestContext requestContext) +355
   EPiServer.Web.Routing.UrlResolver.GetVirtualPathInternal(ContentReference contentLink, String language, VirtualPathArguments arguments) +781
   EPiServer.Web.Routing.UrlResolver.GetUrl(ContentReference contentLink, String language, VirtualPathArguments virtualPathArguments) +15
   EPiServer.Web.Routing.UrlResolver.GetUrl(UrlBuilder urlBuilderWithInternalUrl, ContextMode mode) +166
   EPiServer.Core.Html.StringParsing.UrlFragment.GetEditFormat() +32
   EPiServer.Core.Html.StringParsing.StringFragmentCollection.MergeStringFragments(StringMode mode) +266
   MakingWaves.EPiImage.EPiImageGalleryProperty.LoadData(Object newValue) +87
   EPiServer.DataAccess.ContentLoadDB.LoadContentInternal(ContentReference contentLink, Int32 languageBranchId, DbDataReader reader) +1229
   EPiServer.DataAccess.<>c__DisplayClass1.b__0() +285
   EPiServer.Data.Providers.<>c__DisplayClass1`1.b__0() +60
   EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute(Func`1 method) +150
   EPiServer.Core.<>c__DisplayClass26.b__24() +141
   EPiServer.Core.OptimisticCache`1.Read(String cacheKey, ReadAndCacheObject`1 readAndCacheObject) +1175
   EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) +945
   EPiServer.Core.DefaultContentLoader.TryGet(ContentReference contentLink, LoaderSettings loaderSettings, T& content) +669
   EPiServer.Core.DefaultContentLoader.Get(ContentReference contentLink, LoaderSettings loaderSettings) +90
   EPiServer.Core.d__6.MoveNext() +407
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +165
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +520
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +103
   EPiServer.Web.Routing.AncestorReferencesLoader.GetAncestors(ContentReference contentLink, AncestorLoaderRule rule) +363
   EPiServer.Web.Routing.Segments.DefaultUrlSegmentRouter.IsContentUnderRoot(ContentReference contentLink) +205
   EPiServer.Web.Routing.Segments.NodeSegment.GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values) +258
   EPiServer.Web.Routing.Segments.NodeSegment.GetVirtualPathSegment(RequestContext requestContext, RouteValueDictionary values, HashSet`1 usedValues) +59
   EPiServer.Web.Routing.ContentRoute.AddVirtualPathFromSegments(StringBuilder virtualPath, RequestContext requestContext, RouteValueDictionary values, HashSet`1 usedValues, Int32 lastNonDefaultIndex) +118
   EPiServer.Web.Routing.ContentRoute.GetVirtualPath(RequestContext requestContext, RouteValueDictionary values) +413
   EPiServer.Web.Routing.UrlResolver.GetUrlFromRoute(ContentReference contentRefernce, String language, RouteValueDictionary routeValues, RequestContext requestContext) +355
   EPiServer.Web.Routing.UrlResolver.GetVirtualPathInternal(ContentReference contentLink, String language, VirtualPathArguments arguments) +781
   EPiServer.Web.Routing.UrlResolver.GetUrl(ContentReference contentLink, String language, VirtualPathArguments virtualPathArguments) +15
   EPiServer.Web.Routing.UrlResolver.GetUrl(UrlBuilder urlBuilderWithInternalUrl, ContextMode mode) +166
   EPiServer.Core.Html.StringParsing.UrlFragment.GetEditFormat() +32
   EPiServer.Core.Html.StringParsing.StringFragmentCollection.MergeStringFragments(StringMode mode) +266
   MakingWaves.EPiImage.EPiImageGalleryProperty.LoadData(Object newValue) +87
   EPiServer.DataAccess.ContentLoadDB.LoadContentInternal(ContentReference contentLink, Int32 languageBranchId, DbDataReader reader) +1229
   EPiServer.DataAccess.<>c__DisplayClass1.b__0() +285
   EPiServer.Data.Providers.<>c__DisplayClass1`1.b__0() +60
   EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute(Func`1 method) +150
   EPiServer.Core.<>c__DisplayClass26.b__24() +141
   EPiServer.Core.OptimisticCache`1.Read(String cacheKey, ReadAndCacheObject`1 readAndCacheObject) +1175
   EPiServer.Core.ContentProvider.LoadContentFromCacheOrRepository(ContentReference contentreference, ILanguageSelector selector) +945
   EPiServer.Core.DefaultContentLoader.TryGet(ContentReference contentLink, LoaderSettings loaderSettings, T& content) +669
   EPiServer.Core.DefaultContentLoader.Get(ContentReference contentLink, LoaderSettings loaderSettings) +90
   EPiServer.Web.Routing.Segments.NodeSegment.RouteDataMatch(SegmentContext context) +406
   EPiServer.Web.Routing.ContentRoute.MatchSegments(SegmentContext segmentContext) +64
   EPiServer.Web.Routing.ContentRoute.RouteSegmentContext(SegmentContext segmentContext) +16
   EPiServer.Web.Routing.ContentRoute.GetRouteData(HttpContextBase httpContext) +481
   System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +251
   EPiServer.Web.Routing.RouteCollectionExtensions.HandleRouteData(RouteCollection routes, HttpContextBase context) +34
   EPiServer.Global.DefaultDocumentHandling(Object sender, EventArgs e) +197
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
#113509
Nov 23, 2014 15:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.