Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Issue with Azure Implementation #1187


User avatar
0
maharatha created

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)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    This code has no relation to languages and localization. What error are you getting ?

  • User Avatar
    0
    maharatha created

    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

  • User Avatar
    0
    maharatha created

    Any update on how to troubleshoot ?

  • User Avatar
    0
    maharatha created

    I am not sure what resolved it, but when I deleted all the resources and tried again it worked.