I am getting the below issue in Azure:
@Html.Action("Header", "Layout", new { currentPageName = ViewBag.CurrentPageName })
The database is fine becuase it works when I connect my local system to the database.
So I am not sure what could be causing this issue.
is there any other place other than the Language table I should look for
4 Answer(s)
-
0
Hi,
This code has no relation to languages and localization. What error are you getting ?
-
0
o language defined in this application.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Abp.AbpException: No language defined in this application.
Source Error:
Line 50: <body class="corporate"> Line 51: Line 52: @Html.Action("Header", "Layout", new { currentPageName = ViewBag.CurrentPageName }) Line 53: Line 54: <div class="main">
Source File: d:\home\site\wwwroot\Views\Layout_Layout.cshtml Line: 52
Stack Trace:
[AbpException: No language defined in this application.] Abp.Localization.LanguageManager.GetCurrentLanguage() in D:\Halil\GitHub\aspnetboilerplate\src\Abp\Localization\LanguageManager.cs:29
Note : It works fine when I debug from my Visual Studio and connect to Azure DB
-
0
Any update on how to troubleshoot ?
-
0
I am not sure what resolved it, but when I deleted all the resources and tried again it worked.