FeatureReferences`1.ThrowContextDisposed() #3322
Replies: 1 comment
-
I just happened to figure this one out. It turns out the issue is with the configuration of Automapper. The line services.AddSingleton(mapper => new MapperConfiguration(cfg =>..... Needs to be: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting scarry weird behavior in a razor page for blazor server. When I use the menu item, i have no problems. when I use the refresh button or enter the page using the url (or pressing return in the browser, the application fails, is unresponsive and make me nervous because I don't know what to do. It appears that circuit is closed, but I don't know or understand why and consequently what to do to resolve it. I noticed that Application Context is hosed up too with a lot of object disposed references.
Ideas would be greatly appreciated.
the error generated is:
Stack Trace
at Microsoft.AspNetCore.Http.Features.FeatureReferences
1.ThrowContextDisposed() at Microsoft.AspNetCore.Http.DefaultHttpContext.get_User() at Csla.AspNetCore.ApplicationContextManagerHttpContext.GetUser() at Csla.ReadOnlyBase
1.VerifyAuthorizationCache()at Csla.ReadOnlyBase
1.CanReadProperty(IPropertyInfo property) at Csla.ReadOnlyBase
1.CanReadProperty(IPropertyInfo property, Boolean throwOnFalse)at Csla.ReadOnlyBase
1.GetProperty[P](PropertyInfo
1 propertyInfo, NoAccessBehavior noAccess)at Csla.ReadOnlyBase
1.GetProperty[P](PropertyInfo
1 propertyInfo)at Amicus.Business.EnvironmentalReportLibrary.BO.EnvironmentalTotalInfo.get_DescriptionCount() in C:\Users\kcabr\source\repos\kcabral817\AmicusBuilder2\EnvironmentalReportLibrary\Amicus.Business.EnvironmentalReportLibrary\BO\EnvironmentalTotalInfo.cs:line 21
at Radzen.Blazor.RadzenPieSeries
1.<SetParametersAsync>b__36_0(TItem e) at System.Linq.Enumerable.WhereEnumerableIterator
1.ToList()at Radzen.Blazor.RadzenPieSeries`1.d__36.MoveNext()
Application Context:
<title>Document</title>Beta Was this translation helpful? Give feedback.
All reactions