Starts in:
2 DAYS
8 HRS
41 MIN
31 SEC
Starts in:
2 D
8 H
41 M
31 S

Activities of "bqabani"

I send you an email from my personal email (rotahbashi)


Another issue in v5.1.1 Is when you call unauthorized api you get redirection to login page instead of (authorized response that was available in 4.X.X )

Looks like you change the authentication challenge, can we get the previous error instead of return to login page?

We faced three issues when we added a new custom module to the new project:

  • ABP Framework version: v5.1.1

  • UI type: Angular

  • DB provider: EF Core

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

  • Exception message and stack trace: Autofac.Core.DependencyResolutionException: 'An exception was thrown while activating Volo.Abp.IdentityServer.Grants.PersistedGrantStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper1[[Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.1.1.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider1[[Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.1.1.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor.'

  • Steps to reproduce the issue:" And added a new module (abp add-module CustomModule --new --add-to-solution-file) Then when I added a simple AppService and related Controller, When I run the project I get this error:


Another issue related to adding custom module: The host app does not generate the migration for the Custom module:

When I add/change entities to a custom abp module. And then run migrator on the host project (EntityFrameworkCore) it did not generate migration script for changes (but it was working on previous versions, and it works on this version when I do changes to the host project, my issue is when I use the custom abp module)

the generated migration is empty


The third issue, a problem with generating proxies:

When I try to run generate proxy command on new project that has one custom module, I face this error:

abp generate-proxy -t ng

[16:49:56 INF] ABP CLI (https://abp.io) [16:49:57 INF] Version 5.1.1 (Stable) [16:49:58 WRN] Couldn't determinate version of "@abp/ng.schematics" package. An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID See ".....\AppData\Local\Temp\ng-C1btyE\angular-errors.log" for further details.

angular-errors.log content is:

[error] Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID at Object.code (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\vocabularies\core\id.js:6:15) at keywordCode (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:454:13) at ....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:222:17 at CodeGen.code (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:439:13) at CodeGen.block (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:568:18) at iterateKeywords (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:219:9) at groupKeywords (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:208:13) at ....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:192:13 at CodeGen.code (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:439:13) at CodeGen.block (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:568:18)

Answer

I Created a new project (Abp : 5.1.1) (angular) (not separated identity ) (SQL Server) And added a new module (abp add-module CustomModule --new --add-to-solution-file) Then when I added a simple AppService and related Controller, When I run the project I get this error:

Autofac.Core.DependencyResolutionException: 'An exception was thrown while activating Volo.Abp.IdentityServer.Grants.PersistedGrantStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper1[[Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.1.1.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider1[[Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.1.1.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor.'

Answer

Another Issue: (Abp : 5.1.1) (angular) (not separated identity ) (SQL Server)

When I add/change entities to a custom abp module. And then run migrator on the host project (EntityFrameworkCore) it did not generate migration script for changes (but it was working on previous versions, and it works on this version when I do changes to the host project, my issue is when I use the custom abp module)

the generated migration is empty

Answer

(Abp : 5.1.1) (angular) (not separated identity )

When I try to run generate proxy command on new project that has one custom module, I face this error:

abp generate-proxy -t ng

[16:49:56 INF] ABP CLI (https://abp.io) [16:49:57 INF] Version 5.1.1 (Stable) [16:49:58 WRN] Couldn't determinate version of "@abp/ng.schematics" package. An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID See ".....\AppData\Local\Temp\ng-C1btyE\angular-errors.log" for further details.

angular-errors.log content is:

[error] Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID at Object.code (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\vocabularies\core\id.js:6:15) at keywordCode (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:454:13) at ....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:222:17 at CodeGen.code (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:439:13) at CodeGen.block (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:568:18) at iterateKeywords (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:219:9) at groupKeywords (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:208:13) at ....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:192:13 at CodeGen.code (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:439:13) at CodeGen.block (....\angular\node_modules@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:568:18)

We face the same issue we have been trying to solve this for three days

Environment: Abp Commerical Version 4.2.1 Project Type: MVC + Angular Identity server and host are merge in one host project.

The problem: We need to make configuration of environment changable after the front end was published without the need to rebuild when we change the configuration.

We tried the solution here https://support.abp.io/QA/Questions/322/Angular-environment-config-changes So we added the remoteEnv section in the environment.ts and environment.prod.ts and we changed the json file to be

import { Environment } from '@abp/ng.core';

export const environment = { production: true, remoteEnv: { url: '/assets/appsettings.prod.json', method: 'GET', headers: {} }, } as Environment;

and we added /assets/appsettings.prod.json :

{

"application": {
	"baseUrl" : "https://196.202.5.151:9017",
    name: 'My App Name',
  },
"oAuthConfig": {
    "issuer": "https://localhost:44334",
    "redirectUri": "http://localhost:4200",
    "clientId": "My_App",
    "responseType": "code",
    "scope": "offline_access openid profile role email phone AppName"
},
"apis": {
    "default": {
        "url": "https://localhost:44334",
        "rootNamespace": "AppName"
    }
}

}

But I the system did not work, I got error in console (Cannot read property 'responseType' of undefined) we changed the json again to be:

{

"application": {
	"baseUrl" : "https://196.202.5.151:9017"
  },
"oAuthConfig": {
    "issuer": "https://localhost:44334",
    "redirectUri": "http://localhost:4200"
},
"apis": {
    "default": {
        "url": "https://localhost:44334",
        "rootNamespace": "AppName"
    }
}

}

The front end worked properly with anonymous but the Identity server gave an error: Failed to validate the token. Microsoft.IdentityModel.Tokens.SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed. Unable to match key: kid: 'System.String'.

I also tried other solution mentioned in the thread of github issues but all of them did not work, Please provide us with required steps to fix this. Thank you

Answer

The issue is solved by changing http to be https (unfortunately there is no error message to tell the the issue, you just need to guess!)

Dears,

I have a working abp in local environment, when I published to local staging server (without https) it runs but no login links work, all (Login) links in menu and homepage does not do anything!

I have no error in console.

Any idea?

It is 4.2 version (Angular) Commercial

Answer

Dears,

I have a working abp in local environment, when I published to local staging server (without https) it runs but no login links work, all (Login) links in menu and homepage does not do anything!

I have no error in console.

Any idea?

It is 4.2 version (Angular) Commercial

Answer

Any update? I got the same error:

Warning: Entry point '@volo/abp.ng.account/config' contains deep imports into '......./angular/projects/account/admin/src/public-api.ts'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

Error: Failed to compile entry-point @volo/abp.ng.account/config (es2015 as esm2015) due to compilation errors:
projects/account/admin/src/account-settings.module.ts:28:14 - error NG6002: Appears in the NgModule.imports of AccountConfigModule, but could not be resolved to an NgModule class.

Is it missing an @NgModule annotation?

28 export class AccountSettingsModule {}
Showing 31 to 40 of 43 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06