Open Closed

Missing Language Management menu #4969


User avatar
0
hayash created
  • ABP Framework version: v6.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes Hi, we downloaded the free version before about 6 months and did our customization on it then lately we upgraded the license but still the language management menu is still missing, do we need any extra steps to display language management?

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

    Hi,

    You need to install the language management module.

    You can use the ABP suite to install the language management module.

  • User Avatar
    0
    hayash created

    Hi,

    You need to install the language management module.

    You can use the ABP suite to install the language management module.

    Per ABP documentations this is installed by default.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    we downloaded the free version before about 6 months and did our customization on it then lately we upgraded the license but still the language management menu is still missing

    As you said, you were using the free version before, ABP will not install the language management module by default for the free version

    If you create a new project using the ABP suite, you will find the language management module is preinstalled.

  • User Avatar
    0
    hayash created

    Hi

    we downloaded the free version before about 6 months and did our customization on it then lately we upgraded the license but still the language management menu is still missing

    As you said, you were using the free version before, ABP will not install the language management module by default for the free version

    If you create a new project using the ABP suite, you will find the language management module is preinstalled.

    Well I tried to install it using the following command (after I login in CLI with my commercial account) : abp add-module volo.languageManagement --version 6.0.2

    But I got build errors like The type or namespace name 'LanguageManagement' does not exist in the namespace 'Volo.Abp' (are you missing an assembly reference?)

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I can't reproduce the problem.

    Steps:

    • abp new Myapp -t app -v 6.0.2
    • Copy the commercial Nuget.Config file to the Myapp directory
    • abp add-module volo.languageManagement --version 6.0.2

    You can run create a new app-pro project to get the commercial Nuget.Config file abp new Myapp -t app-pro

    But I got build errors like

    Can you share the full error logs?

  • User Avatar
    0
    hayash created

    Hi,

    I can't reproduce the problem.

    Steps:

    • abp new Myapp -t app -v 6.0.2
    • Copy the commercial Nuget.Config file to the Myapp directory
    • abp add-module volo.languageManagement --version 6.0.2

    You can run create a new app-pro project to get the commercial Nuget.Config file abp new Myapp -t app-pro But I got build errors like

    Can you share the full error logs?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    H,

    You can see the error message.

    Found more then one project

    So, the ABP CLI can't automatically install the configuration for you, you need to install the module manually.

    1

    You need to install these packages:

    • Volo.Abp.LanguageManagement.Web
    • Volo.Abp.LanguageManagement.HttpApi.Client
    • Volo.Abp.LanguageManagement.HttpApi
    • Volo.Abp.LanguageManagement.EntityFrameworkCore
    • Volo.Abp.LanguageManagement.Domain.Shared
    • Volo.Abp.LanguageManagement.Domain
    • Volo.Abp.LanguageManagement.Application.Contracts
    • Volo.Abp.LanguageManagement.Application

    For example, install the Volo.Abp.LanguageManagement.Web package to the MainApp.Web and add the typeof(LanguageManagementWebModule) to the MainAppWebModule module dependencies... etc

    Maybe you need to add a namespace using, you can do it through the prompt of the IDE

    2

    Add builder.ConfigureLanguageManagement(); to the OnModelCreating method of the DbContext class.

    Maybe you need to add a namespace using, you can do it through the prompt of the IDE

    3

    Run the dotnet ef migrations add AddLanguageManagement command in the .EntityFrameworkCore project directory to add the migration file.

    4

    Add "@volo/language-management": "~6.0.2" to the package.json file.

    And run the abp install-libs command in the .Web project directory to restore the NPM packages.

    5

    The last step is to run the .DbMigrator command to apply the migration file.

  • User Avatar
    0
    hayash created

    H,

    You can see the error message.

    Found more then one project

    So, the ABP CLI can't automatically install the configuration for you, you need to install the module manually.

    1

    You need to install these packages:

    • Volo.Abp.LanguageManagement.Web
    • Volo.Abp.LanguageManagement.HttpApi.Client
    • Volo.Abp.LanguageManagement.HttpApi
    • Volo.Abp.LanguageManagement.EntityFrameworkCore
    • Volo.Abp.LanguageManagement.Domain.Shared
    • Volo.Abp.LanguageManagement.Domain
    • Volo.Abp.LanguageManagement.Application.Contracts
    • Volo.Abp.LanguageManagement.Application

    For example, install the Volo.Abp.LanguageManagement.Web package to the MainApp.Web and add the typeof(LanguageManagementWebModule) to the MainAppWebModule module dependencies... etc

    Maybe you need to add a namespace using, you can do it through the prompt of the IDE

    2

    Add builder.ConfigureLanguageManagement(); to the OnModelCreating method of the DbContext class.

    Maybe you need to add a namespace using, you can do it through the prompt of the IDE

    3

    Run the dotnet ef migrations add AddLanguageManagement command in the .EntityFrameworkCore project directory to add the migration file.

    4

    Add "@volo/language-management": "~6.0.2" to the package.json file.

    And run the abp install-libs command in the .Web project directory to restore the NPM packages.

    5

    The last step is to run the .DbMigrator command to apply the migration file.

    The installer already added the required code that you mentioned but the problem is that the these dlls Volo.Abp.LanguageManagement.Web Volo.Abp.LanguageManagement.HttpApi.Client Volo.Abp.LanguageManagement.HttpApi Volo.Abp.LanguageManagement.EntityFrameworkCore Volo.Abp.LanguageManagement.Domain.Shared Volo.Abp.LanguageManagement.Domain Volo.Abp.LanguageManagement.Application.Contracts

    are not found in Volo Nuget as you can see in the screen shot below :

    As you can see the only one found is Volo.Abp.LanguageManagement.Application

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It seems a problem, we will check it.

    You can try to use the ABP CLI to install the package:

    abp add-package Volo.Abp.LanguageManagement.Web

  • User Avatar
    0
    hayash created

    Hi,

    It seems a problem, we will check it.

    You can try to use the ABP CLI to install the package:

    abp add-package Volo.Abp.LanguageManagement.Web

    Same thing

  • User Avatar
    0
    hayash created

  • User Avatar
    0
    hayash created

    The weird thing is that the module's installer installed the language Management package successfully in MainApp.Web project but not in MainApp.Domain.Shared project as you can see below:

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi

    You are using the wrong package name

    Should be:

  • User Avatar
    0
    hayash created

    Hi

    You are using the wrong package name

    Should be:

    I installed then one by one successfully but now when I try try to run the project it does not run, here is the log file

    2023-05-04 12:31:50.581 +03:00 [INF] Starting web host. 2023-05-04 12:32:09.688 +03:00 [FTL] Host terminated unexpectedly! System.IO.FileNotFoundException: Could not load file or assembly 'Volo.Abp.SettingManagement.Domain, Version=6.0.2.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'Volo.Abp.SettingManagement.Domain, Version=6.0.2.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, RuntimeType type, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction) at MainApp.Web.Program.Main(String[] args) in C:\Users\mohda\Documents\NourSoft\Project\PlatformGitHub\frontendPlatform\FrontEnd\DocsysFrontend\src\MainApp.Web\Program.cs:line 39*

    From the log file it seems there is something happened to the Volo.Abp.SettingManagement.Domain after I installed the language management, what is the relation between them?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could not load file or assembly xxx

    This problem usually occurs when a project directly or indirectly references a different version of a package.

    You can check your solution to make sure the version of the ABP packages is consistent.

    Run the dotnet clean & dotnet build command.

    BTW, It still not working. could you share a minimal project that reproduces this problem? I'll check it out. shiwei.liang@volosoft.com

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11