Starts in:
2 DAYS
3 HRS
4 MIN
51 SEC
Starts in:
2 D
3 H
4 M
51 S
Open Closed

Setting Mangement Issue. #2401


User avatar
0
kapil created
  • ABP Framework version: v4.4.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:

When I change AbpSettings From Web Project then not reflect the changes in Web.Public project at runtime.when i restart project reflect the changes.I Tried ISettingManager and ISettingProvider Both.


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it out.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you try to add Volo.Abp.Caching.StackExchangeRedis and Microsoft.AspNetCore.DataProtection.StackExchangeRedis package to the Web project.

    [DependsOn(
       ........
       typeof(AbpCachingStackExchangeRedisModule)
    )]
    public class ...WebModule: AbpModule
    {
         public override void ConfigureServices(ServiceConfigurationContext context)
         {
                ................
                Configure<AbpDistributedCacheOptions>(options =>
                {
                    options.KeyPrefix = "MyProjectName:";
                });  
                
                 var dataProtectionBuilder = context.Services.AddDataProtection().SetApplicationName("MyProjectName");
                if (!hostingEnvironment.IsDevelopment())
                {
                    var redis = ConnectionMultiplexer.Connect(configuration["Redis:Configuration"]);
                    dataProtectionBuilder.PersistKeysToStackExchangeRedis(redis, "MyProjectName-Protection-Keys");
                }   
         }
    }
    

    appsettings.json

    {
      .....
        "Redis": {
        "Configuration": "127.0.0.1"
      }
    }
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06