Open Closed

LanguageInfo drops FlagIcon on v8.2.0? #7436


User avatar
0
fgao@primarypartnercare.com created
  • ABP Framework version: v8.2.0
  • UI Type: Angular / MVC / Blazor WASM
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I generated a solution with v8.1.3. It worked fine. Today, I updated the solution to v8.2.0. After that, there are some build errors "CS1729 'LanguageInfo' does not contain a constructor that takes 4 arguments". It arounds line 57-73 in DomainModule.cs. I found there is no FlagIcon parameter in LanguageInfo class constructor and ILanguageInfo interface on v8.2.0.

Is it a bug or by design?


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

    Hi,

    yes ,this is by design

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    https://github.com/abpframework/abp/pull/19222 https://docs.abp.io/en/commercial/8.2/migration-guides/v8_2#removed-flag-icon-from-language-management-module

  • User Avatar
    0
    fgao@primarypartnercare.com created

    Your 1st link above clearly tells how to fix our current code to adapt this update. Thank you!

    The 2nd link mentions another new feature, Session Management feature. MyDbContext now shows an error message saying it "does not implement interface member 'IIdentityDbContext.Sessions'". Is it related to this new feature? How do I "create a new migration"?

    Do you have a document about the best practice to update the solution along with updating Volo NuGet packages?

    Thanks,

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You need to implement the interface member first, and add/apply a new migration file.

    See https://docs.abp.io/en/commercial/latest/modules/identity/session-management

  • User Avatar
    0
    fgao@primarypartnercare.com created

    Ok. I dug it out the type of IdentitySession from assembly and solved this issue. Now the HttpApi.Host seems running good. However, I got errors while Blazor site loading.

    "Error: One or more errors occurred. (An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AspNetCore.Components.WebAssembly.AbpAspNetCoreComponentsWebAssemblyModule, Volo.Abp.AspNetCore.Components.WebAssembly, Version=8.2.0.0, Culture=neutral, PublicKeyToken=null: Could not find 'abp.utils.removeOidcUser' ('removeOidcUser' was undefined). Error: Could not find 'abp.utils.removeOidcUser' ('removeOidcUser' was undefined)."

    It looks like missing a package "removeOidcUser". I've tried to run abp update again, but it's no help. Please advise.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You are using the webassembly UI right?

    you can try update blazor bundle files

    abp bundle

  • User Avatar
    0
    fgao@primarypartnercare.com created

    It works as expected. Thank you!

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38