UI Type: Blazor Server
Database System: EF Core (SQL Server)
Tiered (for MVC) or Auth Server Separated (for Angular): yes
Exception message and full stack trace: Unhandled exception in circuit 'npp8ExY4dQ4kCuEQK_iQNFtpCzJGvMqS03updQRtp2g'. System.ObjectDisposedException: IFeatureCollection has been disposed. Object name: 'Collection'. at Microsoft.AspNetCore.Http.Features.FeatureReferences
1.ThrowContextDisposed() at Microsoft.AspNetCore.Http.Features.FeatureReferences
1.Fetch[TFeature](TFeature& cached, Func2 factory) at Volo.Abp.AspNetCore.Mvc.Client.MvcCachedApplicationConfigurationClient.GetAsync() at Volo.Abp.AspNetCore.Mvc.Client.RemotePermissionChecker.IsGrantedAsync(String name) at Volo.Abp.AspNetCore.Mvc.Client.RemotePermissionChecker.IsGrantedAsync(ClaimsPrincipal claimsPrincipal, String name) at Volo.Abp.Authorization.PermissionRequirementHandler.HandleRequirementAsync(AuthorizationHandlerContext context, PermissionRequirement requirement) at Microsoft.AspNetCore.Authorization.AuthorizationHandler
1.HandleAsync(AuthorizationHandlerContext context) at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements) at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.IsAuthorizedAsync(ClaimsPrincipal user) at Microsoft.AspNetCore.Components.Authorization.AuthorizeViewCore.OnParametersSetAsync() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)Steps to reproduce the issue:
- Create an entity with a nvarchar(max) string property
- Use MemoEdit control on blazor for the string property
- Enter a string with more than 16294 characters
In my case I'm trying to store a string representing an XML Schema Definition but any string with that many characters crashes the app.
5 Answer(s)
-
0
hi
Can you share a test project to reproduce?
I will download and check it.
liming.ma@volosoft.com
Thanks.
-
0
Hi,
Sent you an email with the test project and an example of the input i'm trying to put into the MemoEdit. The project is the standard book CRUD example ABP Studio generates and the property "name" in the book entity was modified to nvarchar(max). Any text with more than 16294 makes the modal close and crashes the app.
Thank you for your help
-
0
hi
context.Services.Configure<HubOptions>(options => { // Set to 256KB options.MaximumReceiveMessageSize = 262144; });
-
0
This solved the issue, thank you.
-
0
Good news.