Dear,
I downloaded the code you shared with me, Then added a property to the GeneralSetting.cs Then Added migration: add-migration Test1 -context TestHostDbContext on (TestHost.EntityFrameworkCore) but did not add any migration!
Dear,
Thank you for your response, but would you please tell me the needed steps to address this issue in other project, and would you please refer the related article for this issue in abp documentation?
A sample code was sent to you,
Please lets focus on:
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
Try add new migration, it will not add the migration for the Entity in the Custom Module
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?
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.AutoMapperAutoObjectMappingProvider
1[[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.'
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
(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
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