Open Closed

An unhandled exception has occurred. See browser dev tools for details. Reload #1990


User avatar
0
VivekKoppula created

I created a new Blazor Server(Not Web Assembly) app and I get the following error as I run the app.

Sometimes it works, but most f the times, I am getting this error.

image.png

The dotnet version is 6.0.100-rc.2.21505.57
ABP version is 4.4.3 (Stable)

image.png

  • DB provider: Its EF Core with Sql

  • Tiered (MVC) or Identity Server Separated (Angular): no

Let me know, If you need any further details.

I used preview checkbox so the latest is used. I am keen for the preview because hot reloading is supported in .net 6, and with blazor server(not web assembly) and I have also the latest VS 2022 Preview 5. So a typical csproj file looks like this.

	  
		net6.0
		InProcess
		true
		true
		true
		false
		true
	  

	  
		
		
		
		
		
		
		
		
		
		
	  

	  
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	  

The logs look below.

2021-10-17 12:17:34.118 +05:30 [INF] Authorization failed. These requirements were not met:
		PermissionRequirement: LeptonThemeManagement.Settings
		2021-10-17 12:17:34.121 +05:30 [INF] Authorization failed. These requirements were not met:
		PermissionRequirement: LeptonThemeManagement.Settings
		2021-10-17 12:17:34.389 +05:30 [WRN] Unhandled exception rendering component: Undefined permission: IdentitySer�
		Volo.Abp.AbpException: Undefined permission: IdentitySer�
		   at Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.Get(String name)
		   at Volo.Abp.Authorization.Permissions.PermissionChecker.IsGrantedAsync(ClaimsPrincipal claimsPrincipal, String[] names)
		   at Volo.Abp.Authorization.Permissions.PermissionChecker.IsGrantedAsync(String[] names)
		   at Volo.Abp.Authorization.Permissions.RequirePermissionsSimpleBatchStateChecker`1.IsEnabledAsync(SimpleBatchStateCheckerContext`1 context)
		   at Volo.Abp.SimpleStateChecking.SimpleStateCheckerManager`1.IsEnabledAsync(TState[] states)
		   at Volo.Abp.UI.Navigation.MenuManager.CheckPermissionsAsync(IServiceProvider serviceProvider, IHasMenuItems menuWithItems)
		   at Volo.Abp.UI.Navigation.MenuManager.GetInternalAsync(String name)
		   at Volo.Abp.UI.Navigation.MenuManager.GetAsync(String[] menuNames)
		   at Volo.Abp.AspNetCore.Components.Web.LeptonTheme.Components.ApplicationLayout.Navigation.MainMenuProvider.GetMenuAsync()
		   at Volo.Abp.AspNetCore.Components.Web.LeptonTheme.Components.ApplicationLayout.MainHeader.MainHeader.OnInitializedAsync()
		   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
		   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
		2021-10-17 12:17:34.395 +05:30 [ERR] Unhandled exception in circuit 'dIVgARWqvTUNtLj0M2vYqV8hgjEwCDp1me3m7bVpJdE'.
        
        
		2021-10-17 12:19:03.476 +05:30 [INF] Request starting HTTP/2 POST https://localhost:44313/_blazor/disconnect multipart/form-data;+boundary=----WebKitFormBoundarya2fTLzwEz9Z9ylvJ 359
		2021-10-17 12:19:03.496 +05:30 [INF] No CORS policy found for the specified request.
		2021-10-17 12:19:03.497 +05:30 [INF] Executing endpoint 'Blazor disconnect'
		2021-10-17 12:19:03.500 +05:30 [INF] Executed endpoint 'Blazor disconnect'
		2021-10-17 12:19:03.502 +05:30 [INF] Request finished HTTP/2 POST https://localhost:44313/_blazor/disconnect multipart/form-data;+boundary=----WebKitFormBoundarya2fTLzwEz9Z9ylvJ 359 - 200 - - 25.3870ms

4 Answer(s)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13