question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.ApplicationException: No language defined!

See original GitHub issue

Hi, I keep getting this error, I i cleaned and rebuild my solution many times and updated the db. Apblanguages has 8 rows in db.

System.ApplicationException: No language defined!

Fout in bron:

Regel 16: <form id=“LoginForm” class=“form-horizontal” action=“@(Url.Action(“Login”, “Account”))?returnUrl=@(Model.ReturnUrl)” method=“POST”> Regel 17: <fieldset> Regel 18: <legend>@L(“LogIn”)</legend> Regel 19: Regel 20: @if (Model.IsMultiTenancyEnabled)

Bronbestand: \Views\Account\Login.cshtml Regel: 18

Stacktracering:

[ApplicationException: No language defined!] Abp.Localization.MultiTenantLocalizationDictionaryProvider.GetDefaultDictionary() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Localization\MultiTenantLocalizationDictionaryProvider.cs:71 Abp.Localization.MultiTenantLocalizationDictionaryProvider.get_DefaultDictionary() in D:\Halil\GitHub\module-zero\src\Abp.Zero\Localization\MultiTenantLocalizationDictionaryProvider.cs:20 Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetStringOrNull(String name, CultureInfo culture, Boolean tryDefaults) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\Dictionaries\DictionaryBasedLocalizationSource.cs:110 Abp.Localization.Dictionaries.DictionaryBasedLocalizationSource.GetString(String name) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\Dictionaries\DictionaryBasedLocalizationSource.cs:61 Abp.Web.Mvc.Views.AbpWebViewPage1.L(String name) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Mvc\Web\Mvc\Views\AbpWebViewPageOfTModel.cs:72 ASP._Page_Views_Account_Login_cshtml.Execute() in c:\Users\xxx\xxx\Visual Studio 2015\Projects\xxx\xxx.Web\Views\Account\Login.cshtml:18 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +197 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +105 System.Web.WebPages.StartPage.RunPage() +17 System.Web.WebPages.StartPage.ExecutePageHierarchy() +64 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +78 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +235 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +56 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +420 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +52 System.Web.Mvc.Async.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() +173 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +100 System.Web.Mvc.Async.WrappedAsyncResult1.CallEndDelegate(IAsyncResult asyncResult) +10 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36 Castle.Proxies.AccountControllerProxy.EndExecuteCore_callback(IAsyncResult asyncResult) +4 Castle.Proxies.Invocations.Controller_EndExecuteCore.InvokeMethodOnTarget() +55 Castle.DynamicProxy.AbstractInvocation.Proceed() +80 Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:29 Castle.DynamicProxy.AbstractInvocation.Proceed() +108 Castle.Proxies.AccountControllerProxy.EndExecuteCore(IAsyncResult asyncResult) +142 System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +22 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 Castle.Proxies.AccountControllerProxy.EndExecute_callback(IAsyncResult asyncResult) +26 Castle.Proxies.Invocations.Controller_EndExecute.InvokeMethodOnTarget() +55 Castle.DynamicProxy.AbstractInvocation.Proceed() +80 Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:29 Castle.DynamicProxy.AbstractInvocation.Proceed() +108 Castle.Proxies.AccountControllerProxy.EndExecute(IAsyncResult asyncResult) +142 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +29 System.Web.Mvc.Async.WrappedAsyncResultBase1.End() +49 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9744373 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
infowell10commented, Jan 17, 2021

Hello ismcagdas,

Perfect, I hadn’t noticed that there is a connection string in the Migrator project. Running the Migrator project populated the tables as expected.

The question of the previous error was occurring exactly because it did not insert the data in the tables including ABPLanguages.

Thank you very much, resolved.

Go through what I did below so that if someone new has doubts you can resolve quickly, I downloaded the version “Multi Page Web Application”. If something is wrong, correct me ismcagdas.

  1. When downloading the Solution, enter the solution and change the Web.config files of the Web project and App.config file of the Migrator project (inside the tools folder) and change the connection string of both for your database to be used .
  2. Run the solution for the first time by initializing the WEB project that will create the ABPs tables in your database.
  3. Run the Migrator project to populate the ABP tables.

I have attached an example of my attached connection string. Capturar

1reaction
SurilPatelcommented, Jan 3, 2017

No, surprisingly I didn’t had data in the AbpLanguage table even though I ran Update-Database command yesterday. I ran it again today and now the issue is fixed.

Thanks Jerome for your quick help 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ApplicationException Class (System)
Initializes a new instance of the ApplicationException class with a specified error message and a reference to the inner exception that is the...
Read more >
No language defined in this application web.public project ...
I am getting the following error when run the xxx.web.public project. It happens to freshly downloaded template after successfully run the ...
Read more >
c# - What is ApplicationException for in .NET?
System.ApplicationException is a class that should not be part of the .NET Framework. The original idea was that classes derived from ...
Read more >
ApplicationException is useless - Vishful thinking...
ApplicationException is thrown by a user program, not by the common language runtime. If you are designing an application that needs to ...
Read more >
NO LANGUAGE DEFINED error in VestaCP Login [SOLVED]
Hi all, This afternoon the panel did not let me login, shows the error "NO LANGUAGE DEFINED" and apparently the panel does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found