Activities of "ArneV"

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage.

Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

Recently updated entire project to v9.3.6

Did not upgrade to standalone components, updated app module to this:

import { CoreModule, provideAbpCore, withOptions } from '@abp/ng.core';
import { provideSettingManagementConfig, SettingManagementConfigModule } from '@abp/ng.setting-management/config';
import { provideAbpThemeShared, ThemeSharedModule } from '@abp/ng.theme.shared';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { TranslateModule } from '@ngx-translate/core';
import { CommercialUiConfigModule, provideCommercialUiConfig } from '@volo/abp.commercial.ng.ui/config';
import { AccountAdminConfigModule, provideAccountAdminConfig } from '@volo/abp.ng.account/admin/config';
import { AccountPublicConfigModule, provideAccountPublicConfig } from '@volo/abp.ng.account/public/config';
import { AuditLoggingConfigModule, provideAuditLoggingConfig } from '@volo/abp.ng.audit-logging/config';
import { IdentityConfigModule, provideIdentityConfig } from '@volo/abp.ng.identity/config';
import { LanguageManagementConfigModule, provideLanguageManagementConfig } from '@volo/abp.ng.language-management/config';
import { registerLocale } from '@volo/abp.ng.language-management/locale';
import { provideSaasConfig, SaasConfigModule } from '@volo/abp.ng.saas/config';
import { provideTextTemplateManagementConfig, TextTemplateManagementConfigModule } from '@volo/abp.ng.text-template-management/config';
import { provideThemeLepton, ThemeLeptonModule } from '@volo/abp.ng.theme.lepton';
import { environment } from '../environments/environment';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ApproveUserActionComponent } from './extentions/user/approve-user/approve-user-action.component';
import { AngularSvgIconModule } from 'angular-svg-icon';
import { MySettingsComponent } from './my-settings/my-settings.component';
import { provideAbpOAuth } from '@abp/ng.oauth';
import { providePrimeNG } from 'primeng/config';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import Aura from '@primeuix/themes/aura';
import { TitleStrategy } from '@angular/router';
import { CustomTitleStrategy } from './custom-title-strategy';

@NgModule({
    declarations: [
        AppComponent,
        ApproveUserActionComponent,
        MySettingsComponent,
    ],
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        AppRoutingModule,
        CoreModule,
        ThemeSharedModule,
        AccountAdminConfigModule,
        IdentityConfigModule,
        TranslateModule.forRoot(),
        SaasConfigModule,
        AuditLoggingConfigModule,
        SettingManagementConfigModule,
        ThemeLeptonModule,
        CommercialUiConfigModule,
        NgbModule,
        AngularSvgIconModule.forRoot(),
    ],
    providers: [
        ApproveUserActionComponent,
        provideAbpCore(
          withOptions({
            environment,
            registerLocaleFn: registerLocale(),
          })
        ),
        provideAbpOAuth(),
        provideAnimationsAsync(),
        providePrimeNG({
          theme: {
            preset: Aura
          }
        }),
        provideAbpThemeShared(),
        provideAccountPublicConfig(),
        provideIdentityConfig(),
        provideAccountAdminConfig(),
        provideLanguageManagementConfig(),
        provideTextTemplateManagementConfig(),
        provideSettingManagementConfig(),
        provideSaasConfig(),
        provideAuditLoggingConfig(),
        provideThemeLepton(),
        provideCommercialUiConfig(),
        {
            provide: TitleStrategy,
            useClass: CustomTitleStrategy,
        },
    ],
    bootstrap: [AppComponent],
})
export class AppModule { }

Exception message and full stack trace:

  • 403 Front-end UI message, no errors in network tab, only when deployed in Azure, not when working locally -> when permissionGuard is in routing.ts (removing permissionGuard stops this behavior)
  • 2main.95b07f25787ff30c.js:1 ERROR TypeError: Cannot read properties of undefined (reading 'roles') at B1 (78906.e758127c22f07108.js:1:532577) at Ba (main.95b07f25787ff30c.js:1:1267644) at ac (main.95b07f25787ff30c.js:1:1277032) at $c (main.95b07f25787ff30c.js:1:1278595) at Df (main.95b07f25787ff30c.js:1:1278399) at zc (main.95b07f25787ff30c.js:1:1278284) at ac (main.95b07f25787ff30c.js:1:1277339) at $c (main.95b07f25787ff30c.js:1:1278595) at Df (main.95b07f25787ff30c.js:1:1278399) at Fh (main.95b07f25787ff30c.js:1:1278344)

Steps to reproduce the issue: First error: When routes are guarded like this, the 403 error pops up on some pages, and on reload of any page even though I am logged in with admin role with all permissions.

{    
    path: 'contractorslist',    
    title: 'Partners',    
    loadChildren: () =>      import('./contractorslist/contractorslist.module').then(m => m.ContractorslistModule),    
    canActivate: [authGuard, permissionGuard],    
    data: {      
        requiredPolicy: 'PartnerPortal.Companies',    
    },  
}

Second error: I updated checks on current user roles to *abpPermission directives, resulting in the "Cannot read properties of undefined (reading 'roles')" error.

<div *abpPermission="'PartnerPortal.Companies.GetAll'" class="menu-item">
    <div class="menu-content pt-8 pb-2">
      <span class="menu-section text-muted text-uppercase fs-8 ls-1">{{
        '::Menu:PartnerOverview' | abpLocalization
      }}</span>
    </div>
  </div>

  <div *ngFor="let companyType of companyTypes" class="menu-item">
    <a
      *abpPermission="'PartnerPortal.Companies.GetAll'"
      class="menu-link without-sub"
      [routerLink]="['/admin/contractorslist', companyType.id]"
      routerLinkActive="active"
    >
      <span class="menu-icon">
        <svg-icon
          [src]="'./assets/media/icons/duotune/ecommerce/ecm008.svg'"
          class="svg-icon svg-icon-2"
        ></svg-icon>
      </span>
      <span class="menu-title">
        {{ companyType.name }}
      </span>
    </a>
  </div>
  • ABP Framework version: v8.2.2

  • UI Type: Angular

  • 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: C:\hostedtoolcache\windows\dotnet\dotnet.exe build D:\a\1\s\src\Volo.Abp.Account.Pro.Admin.Application.Contracts\Volo.Abp.Account.Pro.Admin.Application.Contracts.csproj "-dl:CentralLogger,"D:\a_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.247.3\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"D:\a_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.247.3\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"" --configuration Release Determining projects to restore... ##[error]src\Volo.Abp.Account.Pro.Admin.Application.Contracts\Volo.Abp.Account.Pro.Admin.Application.Contracts.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 8.0.4 to 6.0.0. Reference the package directly from the project to select a different version. Volo.Abp.Account.Pro.Admin.Application.Contracts -> Volo.Abp.Account.Pro.Shared.Application.Contracts -> Volo.Abp.Identity.Pro.Application.Contracts 8.2.2 -> Volo.Abp.Identity.Pro.Domain.Shared 8.2.2 -> Microsoft.Extensions.FileProviders.Embedded (>= 8.0.4) Volo.Abp.Account.Pro.Admin.Application.Contracts -> Volo.Abp.Account.Pro.Shared.Application.Contracts -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0) D:\a\1\s\src\Volo.Abp.Account.Pro.Admin.Application.Contracts\Volo.Abp.Account.Pro.Admin.Application.Contracts.csproj : error NU1605: Warning As Error: Detected package downgrade: Microsoft.Extensions.FileProviders.Embedded from 8.0.4 to 6.0.0. Reference the package directly from the project to select a different version. D:\a\1\s\src\Volo.Abp.Account.Pro.Admin.Application.Contracts\Volo.Abp.Account.Pro.Admin.Application.Contracts.csproj : error NU1605: Volo.Abp.Account.Pro.Admin.Application.Contracts -> Volo.Abp.Account.Pro.Shared.Application.Contracts -> Volo.Abp.Identity.Pro.Application.Contracts 8.2.2 -> Volo.Abp.Identity.Pro.Domain.Shared 8.2.2 -> Microsoft.Extensions.FileProviders.Embedded (>= 8.0.4) D:\a\1\s\src\Volo.Abp.Account.Pro.Admin.Application.Contracts\Volo.Abp.Account.Pro.Admin.Application.Contracts.csproj : error NU1605: Volo.Abp.Account.Pro.Admin.Application.Contracts -> Volo.Abp.Account.Pro.Shared.Application.Contracts -> Microsoft.Extensions.FileProviders.Embedded (>= 6.0.0)

  • Steps to reproduce the issue:

Pipeline yaml:

  • job: Job_Build_Host steps: - task: UseDotNet@2 displayName: "Use .NET Core sdk 8.x" inputs: version: 8.x

        - task: DotNetCoreCLI@2
          displayName: Build
          inputs:
            command: "build"
            projects: "**/*.csproj"
            arguments: "--configuration Release"
            workingDirectory: "$(System.DefaultWorkingDirectory)/aspnet-core"
    
  • ABP Framework version: v8.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize
[09:35:56 DBG] Start authorize request
[09:35:56 DBG] No user present in authorize request
[09:35:56 DBG] Start authorize request protocol validation
[09:35:56 ERR] Unknown client or not enabled: PartnerPortal_App
{"ClientId": null, "ClientName": null, "RedirectUri": null, "AllowedRedirectUris": null, "SubjectId": "anonymous", "ResponseType": null, "ResponseMode": null, "GrantType": null, "RequestedScopes": "", "State": null, "UiLocales": null, "Nonce": null, "AuthenticationContextReferenceClasses": null, "DisplayMode": null, "PromptMode": "", "MaxAge": null, "LoginHint": null, "SessionId": null, "Raw": {"response_type": "code", "client_id": "PartnerPortal_App", "state": "dS5jYy0xNGZBenBVNk9RZkZaLURqa35ubVkzMXVlSVdlX2FnSXRJdXFoNWlh", "redirect_uri": "http://localhost:4200", "scope": "offline_access openid profile role email phone PartnerPortal", "code_challenge": "9UgsS7QtePtvo10d2NkPR2yEsuJLVMdMfYrFmj5JvV8", "code_challenge_method": "S256", "nonce": "dS5jYy0xNGZBenBVNk9RZkZaLURqa35ubVkzMXVlSVdlX2FnSXRJdXFoNWlh", "culture": "en", "ui-culture": "en", "selectedTenantId": "7a50f0a8-38e8-0807-55b4-3a040dbaffd1"}, "$type": "AuthorizeRequestValidationLog"}
[09:35:56 ERR] Request validation failed
[09:35:56 INF] {"ClientId": null, "ClientName": null, "RedirectUri": null, "AllowedRedirectUris": null, "SubjectId": "anonymous", "ResponseType": null, "ResponseMode": null, "GrantType": null, "RequestedScopes": "", "State": null, "UiLocales": null, "Nonce": null, "AuthenticationContextReferenceClasses": null, "DisplayMode": null, "PromptMode": "", "MaxAge": null, "LoginHint": null, "SessionId": null, "Raw": {"response_type": "code", "client_id": "PartnerPortal_App", "state": "dS5jYy0xNGZBenBVNk9RZkZaLURqa35ubVkzMXVlSVdlX2FnSXRJdXFoNWlh", "redirect_uri": "http://localhost:4200", "scope": "offline_access openid profile role email phone PartnerPortal", "code_challenge": "9UgsS7QtePtvo10d2NkPR2yEsuJLVMdMfYrFmj5JvV8", "code_challenge_method": "S256", "nonce": "dS5jYy0xNGZBenBVNk9RZkZaLURqa35ubVkzMXVlSVdlX2FnSXRJdXFoNWlh", "culture": "en", "ui-culture": "en", "selectedTenantId": "7a50f0a8-38e8-0807-55b4-3a040dbaffd1"}, "$type": "AuthorizeRequestValidationLog"}
[09:35:56 INF] {"ClientId": "PartnerPortal_App", "ClientName": null, "RedirectUri": null, "Endpoint": "Authorize", "SubjectId": null, "Scopes": "", "GrantType": null, "Error": "unauthorized_client", "ErrorDescription": "Unknown client or client not enabled", "Category": "Token", "Name": "Token Issued Failure", "EventType": "Failure", "Id": 2001, "Message": null, "ActivityId": "0HN6IVL4KETP2:00000001", "TimeStamp": "2024-09-12T07:35:56.0000000Z", "ProcessId": 13528, "LocalIpAddress": "::1:44385", "RemoteIpAddress": "::1", "$type": "TokenIssuedFailureEvent"}
[09:35:56 INF] The response could not be cached for this request.
[09:35:56 INF] Request finished HTTP/2 GET https://localhost:44385/connect/authorize?response_type=code&client_id=PartnerPortal_App&state=dS5jYy0xNGZBenBVNk9RZkZaLURqa35ubVkzMXVlSVdlX2FnSXRJdXFoNWlh&redirect_uri=http%3A%2F%2Flocalhost%3A4200&scope=offline_access%20openid%20profile%20role%20email%20phone%20PartnerPortal&code_challenge=9UgsS7QtePtvo10d2NkPR2yEsuJLVMdMfYrFmj5JvV8&code_challenge_method=S256&nonce=dS5jYy0xNGZBenBVNk9RZkZaLURqa35ubVkzMXVlSVdlX2FnSXRJdXFoNWlh&culture=en&ui-culture=en&selectedTenantId=7a50f0a8-38e8-0807-55b4-3a040dbaffd1 - 302 0 null 168.9828ms
[09:35:56 INF] Request starting HTTP/2 GET https://localhost:44385/Account/Error?errorId=CfDJ8IfPL4gEj_lBlyYCXb43SqCQlGHbLin3iWrDERZZZMPJXGXDBNB-bwtAJHEUnE242e8WY60fcVCIASDxpBEYeN0k13jJ1H9mNSImPVBZPxGi7pxqhtvS3hp8vg7b4gaNmgpnFDaHA1ooJcMlLiGutarupbmMy109a971491ckIYvI5X9rVQoizC3tdkyK133SyrHal7oPArA8y-dwRcUEinnzXAtK_C0_nxjb2c5qRprPOIsm_JDk8v-Asl9_5KT_CTyQ4Y54LqtBE_m6gFkd-z2rjqg6L9As9rfnk-i9y9vNnRDNXwn9eHonuzxcsGxjIbLad4kczs1k1fjqjQbHZ_Fb1OW8f3jCnu-hDw4wsH4oJpVGXP2Er0ULCyUq1PXcA - null null
[09:35:56 INF] No cached response available for this request.
[09:35:56 INF] Executing endpoint 'Volo.Abp.Account.Web.Areas.Account.Controllers.ErrorController.Index (Volo.Abp.Account.Pro.Public.Web.IdentityServer)'
[09:35:56 INF] Route matched with {area = "account", action = "Index", controller = "Error", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Index(System.String) on controller Volo.Abp.Account.Web.Areas.Account.Controllers.ErrorController (Volo.Abp.Account.Pro.Public.Web.IdentityServer).
[09:35:56 INF] Executing action method Volo.Abp.Account.Web.Areas.Account.Controllers.ErrorController.Index (Volo.Abp.Account.Pro.Public.Web.IdentityServer) - Validation state: Valid
[09:35:56 INF] Executed action method Volo.Abp.Account.Web.Areas.Account.Controllers.ErrorController.Index (Volo.Abp.Account.Pro.Public.Web.IdentityServer), returned result Microsoft.AspNetCore.Mvc.ViewResult in 5.1196ms.
[09:35:56 INF] Executing ViewResult, running view ~/Views/Error/500.cshtml.
  • Steps to reproduce the issue:

Start host, start angular, go to localhost:4200/loginmethod, select tenant, click sign in.

  • ABP Framework version: v8.2.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Exception message and full stack trace:
core.mjs:6531 ERROR NullInjectorError: NullInjectorError: No provider for InjectionToken OPEN_AUTHORITY_DELEGATION_MODAL!
    at NullInjector.get (core.mjs:1654:27)
    at R3Injector.get (core.mjs:3093:33)
    at R3Injector.get (core.mjs:3093:33)
    at injectInjectorOnly (core.mjs:1100:40)
    at ɵɵinject (core.mjs:1106:60)
    at inject (core.mjs:1192:12)
    at Object.configureUserMenu [as useFactory] (volo-abp.ng.theme.lepton.mjs:1203:48)
    at Object.factory (core.mjs:3322:38)
    at core.mjs:3219:47
    at runInInjectorProfilerContext (core.mjs:866:9)
  • Steps to reproduce the issue:

My package.json:

{
  "name": "PartnerPortal",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve --open",
    "build": "ng build",
    "build:prod": "ng build --configuration production",
    "watch": "ng build --watch --configuration development",
    "test": "ng test",
    "lint": "ng lint"
  },
  "private": true,
  "dependencies": {
    "@abp/ng.components": "^8.2.2",
    "@abp/ng.core": "^8.2.2",
    "@abp/ng.oauth": "^8.2.2",
    "@abp/ng.setting-management": "~8.2.2",
    "@abp/ng.theme.shared": "~8.2.2",
    "@angular/animations": "^17.3.9",
    "@angular/cdk": "^17.3.9",
    "@angular/common": "^17.3.9",
    "@angular/compiler": "^17.3.9",
    "@angular/core": "^17.3.9",
    "@angular/forms": "^17.3.9",
    "@angular/localize": "^17.3.9",
    "@angular/platform-browser": "^17.3.9",
    "@angular/platform-browser-dynamic": "^17.3.9",
    "@angular/router": "^17.3.9",
    "@fortawesome/fontawesome-free": "^5.15.3",
    "@ng-bootstrap/ng-bootstrap": "^16.0.0",
    "@ngx-translate/core": "^15.0.0",
    "@ngx-translate/http-loader": "^6.0.0",
    "@popperjs/core": "~2.11.8",
    "@tinymce/tinymce-angular": "^8.0.1",
    "@types/bootstrap": "^5.1.0",
    "@types/object-path": "^0.11.1",
    "@types/prismjs": "^1.16.6",
    "@volo/abp.commercial.ng.ui": "~8.2.2",
    "@volo/abp.ng.account": "~8.2.2",
    "@volo/abp.ng.audit-logging": "~8.2.2",
    "@volo/abp.ng.file-management": "~8.2.2",
    "@volo/abp.ng.identity": "~8.2.2",
    "@volo/abp.ng.identity-server": "~8.2.2",
    "@volo/abp.ng.language-management": "~8.2.2",
    "@volo/abp.ng.saas": "~8.2.2",
    "@volo/abp.ng.text-template-management": "~8.2.2",
    "@volo/abp.ng.theme.lepton": "~8.2.2",
    "angular-in-memory-web-api": "^0.17.0",
    "angular-svg-icon": "^17.0.0",
    "animate.css": "^4.1.1",
    "apexcharts": "^3.27.2",
    "bootstrap": "^5.0.2",
    "bootstrap-icons": "^1.5.0",
    "clipboard": "^2.0.8",
    "dompurify": "^2.3.10",
    "flag-icons": "^7.2.3",
    "jquery": "^3.6.0",
    "line-awesome": "^1.3.0",
    "ng-apexcharts": "1.8.0",
    "ngx-quill": "^16.1.2",
    "nouislider": "^15.2.0",
    "object-path": "^0.11.5",
    "prism-themes": "^1.8.0",
    "prismjs": "^1.25.0",
    "quill": "^1.3.7",
    "rxjs": "^7.8.1",
    "socicon": "^3.0.5",
    "tslib": "^2.7.0",
    "typescript": "5.3.3",
    "zone.js": "~0.14.10"
  },
  "devDependencies": {
    "@abp/ng.schematics": "~8.2.2",
    "@angular-devkit/build-angular": "^17.3.9",
    "@angular/compiler-cli": "^17.3.9",
    "@angular/language-service": "^17.3.9",
    "@types/jasmine": "~3.6.0",
    "@types/node": "^12.11.1",
    "eslint": "^7.32.0",
    "jasmine-core": "~3.7.0",
    "ng-packagr": "^17.3.0"
  }
}

This after migrating from ABP 5

  • ABP Framework version: v8.2.0
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

Migrated solution from net5.0 to net8.0 and cannot get this to work.

Lots of errors of this type:

CS0433 The type 'AccountUrlNames' exists in both 'Volo.Abp.Account.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' and 'Volo.Abp.Account.Pro.Public.Application, Version=8.2.2.0, Culture=neutral, PublicKeyToken=null' PartnerPortal.HttpApi.Host

Is it possible to schedule a support call on thursday 29th of august?

Kind regards

Showing 1 to 5 of 5 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on February 17, 2026, 09:10
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.