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)
-
0
Hi !
Plaease run the web.host project at least once before running web.public.
Abdourahmani
-
0
Thanks @abdourahmani, yes seed method must be runned at least once.
-
0
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.
-
0
thanks for your feedback