The documanation is obsolate. It will be updated. If you want to update app state you can use this code
configStateService.refreshAppState()
https://github.com/abpframework/abp/blob/0c3e4c4ba3b2e0b9c3fe3031c53d79c255b97655/npm/ng-packs/packages/core/src/lib/services/config-state.service.ts#L64
I want to set App status,like this:
this.config.setState(newConfigObj);
https://docs.abp.io/en/abp/latest/UI/Angular/Config-State-Service#set-state
Create an error/problem report:
import {AbpApplicationConfigurationService, ConfigStateService} from '@abp/ng.core';
constructor(private abpApplicationConfigurationService: AbpApplicationConfigurationService, private config: ConfigStateService) {
this.abpApplicationConfigurationService.get().subscribe(config => {
this.config.setState(config);
})
}
How to get user IP in Application?
If you used
npm install
for package restore, can you tryyarn
?
I tried both npm and yarn
I try yarn cache clean npm cache clean
and delete local node_modules, not work
has been stuck in
Generating browser application bundles (phase: setup)...
⠋ Generating browser application bundles (phase: setup)...An unhandled exception occurred: ENOENT: no such file or directory, lstat '/demo/abpdemo.ag/angular/node_modules/@volosoft' See "/private/var/folders/9v/lkpg0_795zjb9f0w6rxsv9vr0000gn/T/ng-FTuVbV/angular-errors.log" for further details. ⠋ Generating browser application bundles (phase: setup)...
[error] Error: ENOENT: no such file or directory, lstat '/Users/code/demo/abpdemo.ag/angular/node_modules/@volosoft' at Object.realpathSync (node:fs:2503:7) at resolveGlobalStyles (/Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/webpack/configs/styles.js:64:33) at getStylesConfig (/Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/webpack/configs/styles.js:97:70) at /Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/builders/dev-server/index.js:144:43 at /Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:75:16 at generateWebpackConfig (/Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:64:40) at async generateBrowserWebpackConfigFromContext (/Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:125:20) at async generateI18nBrowserWebpackConfigFromContext (/Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/utils/webpack-browser-config.js:73:20) at async setup (/Users/code/demo/abpdemo.ag/angular/node_modules/@angular-devkit/build-angular/src/builders/dev-server/index.js:141:47)
Runtime Compilation not work i already installed package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
Hi
There is a repo you can refer it: https://github.com/antosubash/AuthChange
ok, thank you I think I found the reason
ABP Framework version: v4.3.3
UI type: MVC
DB provider: EF Core
Tiered (MVC) or Identity Server Separated (Angular): no
Exception message and stack trace: There is already an existing permission group with name: AbpIdentity
at Volo.Abp.Authorization.Permissions.PermissionDefinitionContext.AddGroup(String name, ILocalizableString displayName, MultiTenancySides multiTenancySide) at Volo.Abp.Identity.IdentityPermissionDefinitionProvider.Define(IPermissionDefinitionContext context) at Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.CreatePermissionGroupDefinitions() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.CreatePermissionDefinitions() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at System.Lazy1.get_Value() at Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.get_PermissionDefinitions() at Volo.Abp.Authorization.Permissions.PermissionDefinitionManager.GetPermissions() at Volo.Abp.PermissionManagement.PermissionDataSeedContributor.SeedAsync(DataSeedContext context) at Volo.Abp.Data.DataSeeder.<SeedAsync>d__7.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() at Castle.DynamicProxy.AsyncInterceptorBase.<ProceedAsynchronous>d__13.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.<ProceedAsync>d__7.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() at Volo.Abp.Uow.UnitOfWorkInterceptor.<InterceptAsync>d__2.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.<InterceptAsync>d__2.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at BookStore.Data.BookStoreDbMigrationService.<SeedDataAsync>d__11.MoveNext() in D:\code\Demo\BookStore\src\BookStore.Domain\Data\BookStoreDbMigrationService.cs:line 103 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at BookStore.Data.BookStoreDbMigrationService.<MigrateAsync>d__9.MoveNext() in D:\code\Demo\BookStore\src\BookStore.Domain\Data\BookStoreDbMigrationService.cs:line 53 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at BookStore.DbMigrator.DbMigratorHostedService.<StartAsync>d__2.MoveNext() in D:\code\Demo\BookStore\src\BookStore.DbMigrator\DbMigratorHostedService.cs:line 30 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__9.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at BookStore.DbMigrator.Program.<Main>d__0.MoveNext() in D:\code\Demo\BookStore\src\BookStore.DbMigrator\Program.cs:line 29
Steps to reproduce the issue:" I want to remove IdentityServer, it is too complicated I followed the steps provided here https://github.com/abpframework/abp/issues/8023 throw ex : There is already an existing permission group with name: AbpIdentity
You need to create new a
Application Layer
and aHttpApi Layer
as well. So, you can move Book Api related code to new projects and keep module-related api's in old projects. Then reference just new projects fromAcme.BookStore.WebApi
.
I understand, thank you