Ends in:
1 DAY
8 HRS
26 MIN
3 SEC
Ends in:
1 D
8 H
26 M
3 S
Open Closed

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


User avatar
0
infence created

Hi, An unhandled exception has occurred. See browser dev tools for details. Reload(In console: Invocation canceled due to the underlying connection being closed.) , when clicked Reload it works. After doing some research i got to know that this is arising only when i add entities to Module (new Module added to solution).In Log, the error shows as [ERR] Unhandled exception in circuit '97X0b7xtEA1oi719RYRX51AXfS8y8FVO2dELunj6XLM'.

  • ABP Framework version: v8.1.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

19 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    could you please share the full error logs?

  • User Avatar
    0
    infence created

    2024-07-03 14:56:18.223 +05:30 [DBG] Added 0 entity changes to the current audit log 2024-07-03 14:56:18.229 +05:30 [DBG] Added 0 entity changes to the current audit log 2024-07-03 14:56:18.235 +05:30 [WRN] Unhandled exception rendering component: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu.Navigation.MobileNavbar.BuildRenderTree(RenderTreeBuilder __builder) at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) 2024-07-03 14:56:18.246 +05:30 [ERR] Unhandled exception in circuit 'w-VW2zQjg073f-xPA9wm8YUgTmiFF4TeEJjpiX2JRxo'. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu.Navigation.MobileNavbar.BuildRenderTree(RenderTreeBuilder __builder) at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException) 2024-07-03 14:56:18.301 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:21427567-dc61-a262-86d9-

  • User Avatar
    0
    infence created

    After log in , this happens and when reloaded, the home page appears

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    looks like a problem.

    Could you share the full steps to reproduce the problem? i will check it. thanks

  • User Avatar
    0
    infence created
    1. Create a solution in abp suite
    2. Add a Module to solution (Create a New Module in Suite)
    3. Add the Module path to the Abp Suite
    4. Generate entity in Abp suite Crud Page Generator in the New Module
    5. Log in and you can find the reload error

    I am using Abp commercial

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    thanks. i will check it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Add a Module to solution (Create a New Module in Suite)

    How do you add it?

    BTW, you can share a simple project with me, and I will check it. my email is shiwei.liang@volosoft.com

  • User Avatar
    0
    infence created

    Hi, I mailed you from Ambilismadhavan@gmail.com. kindly check.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I received the email, but I can't download it. Could you send it again with https://wetransfer.com/. thanks.

  • User Avatar
    0
    infence created

    Hi, Shared it, please check

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    This is a bug, we will fix it in the next patch version.

    This is a temporary solution

    @using Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.Common
    @using Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu.Navigation
    @using Volo.Abp.DependencyInjection
    @using Volo.Abp.Ui.Branding
    
    @inject IBrandingProvider BrandingProvider
    @inherits Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu.Navigation.MobileNavbar
    
    @attribute [ExposeServices(typeof(MobileNavbar))]
    <div class="lpx-mobile-navbar-container">
    	<div class="lpx-mobile-navbar">
    		<div class="lpx-mobile-nav-tab-left">
    			<ul class="lpx-mobile-nav-tabs">
    				@if(SelectedMenuItems is not null)
    				{
    					foreach (var viewModel in SelectedMenuItems)
    					{
    						<li class="lpx-mobile-nav-tab">
    							<a id="@viewModel.MenuItem.ElementId" href="@viewModel.MenuItem.Url" target="@viewModel.MenuItem.Target" class="lpx-mobile-nav-item @viewModel.MenuItem.CssClass">
    								<i class="menu-item-icon @viewModel.MenuItem.Icon" aria-hidden="true"></i>
    								<span class="mobile-item-text">@viewModel.MenuItem.DisplayName</span>
    							</a>
    						</li>
    					}
    				}
    			</ul>
    
    			<div class="lpx-mobile-nav-tab-center">
    				<a href="javascript:void(0)" class="lpx-mobile-hamburger" data-lpx-mobile-menu-toggle="routes">
    					<span class="hamburger-icon" aria-hidden="true">
    						<span class="icon-part"></span>
    						<span class="icon-part"></span>
    						<span class="icon-part"></span>
    						<span class="icon-part"></span>
    						<span class="icon-part"></span>
    						<span class="icon-part"></span>
    					</span>
    				</a>
    			</div>
    
    			<div class="lpx-mobile-nav-tab-right">
    				<ul class="lpx-mobile-nav-tabs">
    					<li class="lpx-mobile-nav-tab">
    						<a class="lpx-mobile-nav-item" data-lpx-mobile-menu-toggle="settings">
    							<i class="menu-item-icon bi bi-gear-wide-connected" aria-hidden="true"></i>
    							<span class="mobile-item-text">@L["Settings"]</span>
    						</a>
    					</li>
    					<li class="lpx-mobile-nav-tab">
    						<AuthorizeView>
    							<Authorized>
    								<a class="lpx-mobile-nav-item" data-lpx-mobile-menu-toggle="user">
    									<div class="lpx-avatar">
    										<img class="lpx-avatar-img" src="@ProfileImageUrl" alt="@CurrentUser.UserName avatar" />
    									</div>
    
    									<span class="mobile-item-text">@CurrentUser.UserName</span>
    								</a>
    							</Authorized>
    							<NotAuthorized>
    								<a href="@LoginLink" class="lpx-mobile-nav-item">
    									<i class="menu-item-icon bi bi-person-fill" aria-hidden="true"></i>
    									<span class="mobile-item-text">@L["Login"]</span>
    								</a>
    							</NotAuthorized>
    						</AuthorizeView>
    
    					</li>
    				</ul>
    			</div>
    
    		</div>
    	</div>
    
    	<div class="lpx-mobile-menu hidden">
    		<div class="lpx-logo-container">
    			<a href="">
    				<div class="lpx-brand-logo"></div>
    				@if(BrandingProvider.LogoUrl.IsNullOrEmpty())
    				{
    					<div class="lpx-brand-name">@BrandingProvider.AppName</div>
    				}
    			</a>
    		</div>
    		<ul class="lpx-nav-menu d-none" data-lpx-mobile-menu="routes">
    			<MainMenu />
    		</ul>
    
    		<ul class="lpx-nav-menu d-none" data-lpx-mobile-menu="settings">
    			<MobileGeneralSettings />
    		</ul>
    
    		<ul class="lpx-nav-menu d-none" data-lpx-mobile-menu="user">
    			<div class="d-flex ps-3 pe-3">
    				<div class="lpx-avatar me-2">
    					<img class="lpx-avatar-img" src="@ProfileImageUrl" alt="@CurrentUser.UserName avatar" />
    				</div>
    
    				<div class="d-flex flex-column" style="line-height: normal">
    					<span class="lpx-context-menu-user-name">@CurrentUser.Name @CurrentUser.SurName</span>
    					@if (CurrentTenant.IsAvailable)
    					{
    						<span class="lpx-context-menu-user-tenant">@CurrentTenant.Name</span>
    					}
    					<span class="lpx-context-menu-user-email">@CurrentUser.Email</span>
    				</div>
    			</div>
    
    			@if (UserMenu != null)
    			{
    				foreach (var menuItem in UserMenu.Items)
    				{
    					<li class="outer-menu-item">
    						<a class="lpx-menu-item-link lpx-menu-item @menuItem.CssClass" href="@menuItem.Url?.TrimStart('/', '~')" target="@menuItem.Target" id="@menuItem.ElementId">
    							<span class="lpx-menu-item-icon"><i class="lpx-icon @menuItem.Icon" aria-hidden="true"></i></span>
    
    							<span class="lpx-menu-item-text hidden-in-hover-trigger">@menuItem.DisplayName</span>
    						</a>
    					</li>
    				}
    			}
    
    			<li><hr class="my-2"></li>
    
    			@if (Toolbar != null)
    			{
    				foreach (var item in Toolbar.Items)
    				{
    					if(item.ComponentType.Name == "MainHeaderToolbarUserMenu")
    					{
    						continue;
    					}
    
    					<div class="outer-menu-item">
    						<DynamicComponent Type="@item.ComponentType" />
    					</div>
    				}
    			}
    
    		</ul>
    	</div>
    </div>
    
    
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You can upgrade the leptonx package to 3.1.4

  • User Avatar
    0
    infence created

    Thanks a lot.

  • User Avatar
    0
    infence created

    Where should i create that

  • User Avatar
    0
    infence created

    I got it. Thanks

  • User Avatar
    0
    infence created

    Reload disappeared but the admin on the right side bar is not working, m not able to log out.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    i could not reproduce the problem

  • User Avatar
    0
    infence created

    Hi, It wasnt working before. After restarting the system, it works now. Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    okay

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19