Activities of "DominaTang"

hi

Please share full debug logs.

Are you sure all your packages are 9.1.1? You can try to upgrade to the latest 9.1.3 https://www.nuget.org/packages/Volo.Abp.Cli/9.1.3

Thanks.

I couldn't upgrade to 9.1.2, create a separate ticket here: https://abp.io/support/questions/9348/ABP-9-upgrade

Here is part of package.json "@abp/ng.components": "~9.1.1", "@abp/ng.core": "~9.1.1", "@abp/ng.oauth": "~9.1.1", "@abp/ng.setting-management": "~9.1.1", "@abp/ng.theme.shared": "~9.1.1", "@abp/ng.feature-management": "~9.1.1", "@volo/abp.commercial.ng.ui": "~9.1.1", "@volo/abp.ng.account": "~9.1.1", "@volo/abp.ng.audit-logging": "~9.1.1", "@volo/abp.ng.identity": "~9.1.1", "@volo/abp.ng.language-management": "~9.1.1", "@volo/abp.ng.openiddictpro": "~9.1.1", "@volo/abp.ng.saas": "~9.1.1", "@volo/abp.ng.text-template-management": "~9.1.1", "@volosoft/abp.ng.theme.lepton-x": "~4.1.1", "@angular/animations": "~19.1.0", "@angular/cdk": "~19.1.0", "@angular/common": "~19.1.0", "@angular/compiler": "~19.1.0", "@angular/core": "~19.1.0", "@angular/forms": "~19.1.0", "@angular/localize": "~19.1.0", "@angular/material": "~19.1.0", "@angular/material-date-fns-adapter": "~19.1.0", "@angular/platform-browser": "~19.1.0", "@angular/platform-browser-dynamic": "~19.1.0", "@angular/router": "~19.1.0",

Answer

yarn version 1.22.22

Answer

export const appConfig: ApplicationConfig = { providers: [ provideAppInitializer(appInitializerFactory()), importProvidersFrom([ AccountAdminConfigModule, IdentityConfigModule, ThemeLeptonXModule.forRoot(), SideMenuLayoutModule.forRoot(), AccountLayoutModule.forRoot(), ]), provideRouter(appRoutes), APP_ROUTE_PROVIDER, OVERRIDE_LEPTON_X_USER_MENU_PROVIDERS, provideAnimations(), // Add the date-fns adapter provider - this is the correct way in Angular 19 provideDateFnsAdapter(), provideAbpCore( withOptions({ environment, registerLocaleFn: registerLocale(), }), ), provideAbpOAuth(), provideOpeniddictproConfig(), provideIdentityConfig(), provideSettingManagementConfig(), provideFeatureManagementConfig(), provideAccountAdminConfig(), provideTextTemplateManagementConfig(), provideLanguageManagementConfig(), provideAccountPublicConfig(), provideCommercialUiConfig(), provideAuditLoggingConfig(), ACCOUNT_MANAGE_PROFILE_TAB_PROVIDERS, //This is local's override abp provider AuditInterceptorProvider, provideAbpThemeShared( withHttpErrorConfig({ errorScreen: { component: HttpErrorComponent, forWhichErrors: [401, 403, 404, 500], hideCloseIcon: true, }, }), withValidationBluePrint({ wrongPassword: 'Please choose 1q2w3E*', }), ), provideSaasConfig(), DateFnsFormatDateTimePipe, DatePipe, TitleCasePipe,

], };

Here is from log: [20:16:42 INF] Executed action method Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore), returned result Microsoft.AspNetCore.Mvc.SignInResult in 83.8041ms. [20:16:42 INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal. [20:16:42 WRN] There is an entry which is not saved due to concurrency exception: OpenIddictAuthorization {Id: 8b3fde63-5710-65fd-c036-3a135d4249bc} Modified FK {ApplicationId: 55abca09-b50d-399f-246c-3a0cbf31440d}

[20:16:42 INF] Executed action Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 120.0721ms [20:16:42 INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' [20:16:42 WRN] There is an entry which is not saved due to concurrency exception: OpenIddictAuthorization {Id: 8b3fde63-5710-65fd-c036-3a135d4249bc} Modified FK {ApplicationId: 55abca09-b50d-399f-246c-3a0cbf31440d}

[20:16:42 ERR] An unhandled exception has occurred while executing the request. Volo.Abp.Data.AbpDbConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded. See https://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions. ---> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row

The Angular app stand alone set to true

in app.component.ts file

import { RoutesService, ConfigStateService, ReplaceableComponentsService, eLayoutType, ABP, BaseCoreModule } from '@abp/ng.core';
...
private readonly routes = inject(RoutesService);

OnInit(): void {
this.routes.add([
  {
        path: 'dashboard',
        name: ComponentNames.ES_DASHBOARD,
        iconClass: 'fas fa-chart-line',
        order: 5,
        layout: eLayoutType.application,
        requiredPolicy: Permissions.DASHBOARD_MONITORING_DASHBOARD,
      } as ABP.Route,
]);
}

Above code add additional menu item to left-side menus, however, sometimes, the added menu items are not shown.

This error comes back again. After yesterday's deployment, there is no 409 error. And this noon, I access QA site again (no new deployment) since that. Is it because of something regarding to session expired

Answer

After upgrade to ABP 9.1.2, angular app got this exception: NullInjectorError: NullInjectorError: No provider for InjectionToken CORE_OPTIONS!

I am using stand alone mode, that the provider sequence in app.config.ts provided by ABP team's sample code when upgrade to 9.1.1

When upgrade to Abp 9.1.1, we still keep existing .Net projects instead of single project for each Micro Service. I noticed there are IdentityServiceDynamicPermissionDefinitionsChangedEventHandler.cs and IdentityServiceChangeIdentityPasswordPolicySettingDefinitionProvider.cs which doesn't exist in codebase in ABP 8.

If we keep existing ABP 8 solution layout, do we need to add above files somewhere?

Update ABP Studio to latest version From menu change ABP version 9.1.2, create a new solution (Micro Service) After create the solution, check each .Net project, the ABP package version is 9.1.1

this might caused by item 2, since we figure out a wrong setting in deployment pipeline. I will close the ticket.

Showing 31 to 40 of 177 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20