Open Closed

Error in .NET Core Api Run #7478


0
NuboxColombia created

Hi.

We are using maria db and when we try to start .net core back the same error always comes up:

AbpException: No language defined!

Abp.Localization.MultiTenantLocalizationDictionaryProvider.GetDefaultDictionary() Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetStringOrNull(string name, CultureInfo culture, bool tryDefaults) in D:\Github\aspnetboilerplate\src\Abp\Localization\Dictionaries\DictionaryBasedLocalizationSource.cs Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetString(string name, CultureInfo culture) in D:\Github\aspnetboilerplate\src\Abp\Localization\Dictionaries\DictionaryBasedLocalizationSource.cs AspNetCore.Views_Ui_Login.ExecuteAsync() in Login.cshtml +

@L("LogIn")

Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context) Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.ExecuteAsync(ViewContext viewContext, string contentType, Nullable

2 Answer(s)
  • 0
    maliming created

    Have you migrated the database correctly?

    https://docs.aspnetzero.com/documents/aspnet-core-angular/latest/Getting-Started-Angular#migrations

  • 0
    NuboxColombia created

    Hi,

    It has already been corrected. Indeed, the database was badly migrated with MariaDB in local.

    1. dotnet ef migrations add InitialCreate

    2. dotnet ef database update

    3. dotnet run --project NuboxColombia.Web.Host.csproj

    Everything worked correctly. That part well explained in the documentation did not appear

    Thanks.

    Regards.