Base solution for your next web application
Open Closed

No language defined in this application web.public project #3728


User avatar
0
bcaa4567 created

I am getting the following error when run the xxx.web.public project.

It happens to freshly downloaded template after successfully run the Update-Database command.

The project type is ASPNET CORE/ANGULAR v4.3.1 with DOTNET Framework.


An unhandled exception occurred while processing the request.

AbpException: No language defined in this application. Abp.Localization.LanguageManager.GetCurrentLanguage()

Stack Query Cookies Headers AbpException: No language defined in this application. Abp.Localization.LanguageManager.GetCurrentLanguage() Abp.Localization.LanguageManager.get_CurrentLanguage() Rms.Web.Public.Views.Shared.Components.Header.HeaderViewComponent+<InvokeAsync>d__9.MoveNext() in HeaderViewComponent.cs + var headerModel = new HeaderViewModel System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker+<InvokeAsyncCore>d__6.MoveNext() System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

................


4 Answer(s)
  • User Avatar
    0
    abdourahmani created

    Hi !

    Plaease run the web.host project at least once before running web.public.

    Abdourahmani

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @abdourahmani, yes seed method must be runned at least once.

  • User Avatar
    0
    bcaa4567 created

    It worked after I set the migrator project as the startup project and run the migrator on a empty database.

    It will not work if your database already initialized without running the seed methods or initialize the database with the Update-Database command.

  • User Avatar
    0
    alper created
    Support Team

    thanks for your feedback