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

No language defined in this application ( CORE ) #3611


User avatar
0
velu created

Hi,

We are using aspnet Core + angular 4 (combined ).

For this solution we are using Devart drivers for oracle.

We follows this steps in our application.

• All connectivity with database ( Default table structure and data using migrator app successfully inserted In oracle database) • Run update-database command in npm. • All done.

But we are facing problem with starting application.

Image <a class="postlink" href="https://drive.google.com/file/d/0BzSirtYGe7EHRjgyYmo4ODFxbFk/view?usp=sharing">https://drive.google.com/file/d/0BzSirt ... sp=sharing</a>

Stack

AbpException: No language defined in this application.

Abp.Localization.LanguageManager.GetCurrentLanguage()


moneyguru.Web.Public.Views.Shared.Components.Header.HeaderViewComponent+<InvokeAsync>d__9.MoveNext() in HeaderViewComponent.cs
- 
52.            if (_abpSession.TenantId.HasValue)
53.            {
54.                var tenant = await _tenantManager.GetByIdAsync(_abpSession.GetTenantId());
55.                tenancyName = tenant.TenancyName;
56.            }
57.
58.            var headerModel = new HeaderViewModel
59.            {
60.                LoginInformations = await _sessionCache.GetCurrentLoginInformationsAsync(),
61.                IsInHostView = !_abpSession.TenantId.HasValue,
62.                Languages = _languageManager.GetLanguages().Where(l => !l.IsDisabled).ToList(),
63.                CurrentLanguage = _languageManager.CurrentLanguage,
64.                Menu = await _userNavigationManager.GetMenuAsync(FrontEndNavigationProvider.MenuName, _abpSession.ToUserIdentifier()),


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker+<InvokeAsyncCore>d__6.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentInvoker+<InvokeAsync>d__5.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper+<InvokeCoreAsync>d__12.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


System.Runtime.CompilerServices.TaskAwaiter.GetResult()


AspNetCore._Views_Layout__Layout_cshtml+<ExecuteAsync>d__80.MoveNext() in _Layout.cshtml
- 
78.        var abp = abp || {}; abp.appPath = '@ApplicationPath';
79.    </script>
80.
81.</head>
82.<body class="corporate">
83.
84.    @await Component.InvokeAsync(typeof(HeaderViewComponent), new { currentPageName = ViewBag.CurrentPageName })
85.
86.    <div class="main">
87.        <div class="container">
88.            @RenderBody()
89.        </div>
90.    </div>


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.Razor.RazorView+<RenderPageAsync>d__14.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.Razor.RazorView+<RenderLayoutAsync>d__17.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.Razor.RazorView+<RenderAsync>d__13.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor+<ExecuteAsync>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.ViewResult+<ExecuteResultAsync>d__26.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeResultAsync>d__30.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeNextResultFilterAsync>d__28.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResultExecutedContext context)


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeNextResourceFilter>d__22.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context)


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)


Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker+<InvokeAsync>d__20.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Builder.RouterMiddleware+<Invoke>d__4.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()


System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()


System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)


Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()

Thanks and Regards, Vaibhav Patil


15 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Can you try to debug your Host application, add a breakpoint here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.EntityFrameworkCore/EntityFrameworkCore/AbpZeroTemplateEntityFrameworkCoreModule.cs#L45">https://github.com/aspnetzero/aspnet-ze ... ule.cs#L45</a> and see if it hits.

    Thanks.

  • User Avatar
    0
    velu created

    Hi,

    Given URL is not working.

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    You must login to github with your invited github username velayuthams.

    Thanks.

  • User Avatar
    0
    velu created

    Hi,

    Successfully hit breakpointin given namespace.

    [https://drive.google.com/file/d/0BzSirtYGe7EHVlo0Z2p0aFZzWU0/view?usp=sharing])

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    We can try to help you via remote connection next week if it is OK with you. Please send your availability to <a href="mailto:[email protected]">[email protected]</a> and we will set up a meeting.

    Thanks.

  • User Avatar
    0
    abdourahmani created

    Hi ,

    I'm also facing this issue. with aspnet Core + angular 4 (not combined solution) v4.2.1

    Abdourahmani

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @abdourahmani,

    Do you use Sql Server ?

    Thanks.

  • User Avatar
    0
    velu created

    Hi,

    We are using oracle 11G and Devart drivers for oracle connection.

    ASPNETZERO(CORE) combined + Angular. Thanks

  • User Avatar
    0
    abdourahmani created

    <cite>ismcagdas: </cite> Hi @abdourahmani,

    Do you use Sql Server ?

    Thanks.

    Yes, I'm using Sql Server.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @abdourahmani,

    So, is there any records on AbpLanguages table when you browse it with sql server management studio or with a similar tool ?

    Thanks.

  • User Avatar
    0
    abdourahmani created

    <cite>ismcagdas: </cite> Hi @abdourahmani,

    So, is there any records on AbpLanguages table when you browse it with sql server management studio or with a similar tool ?

    Thanks.

    No, the table AbpLanguages is empty.

  • User Avatar
    0
    abdourahmani created

    <cite>ismcagdas: </cite> Hi @abdourahmani,

    So, is there any records on AbpLanguages table when you browse it with sql server management studio or with a similar tool ?

    Thanks.

    It's Ok now. I was running the "public" application. When I switched to the "Host", everything work fine.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @abdourahmani,

    It is great :). The problem of @velu is a bit different. It seems like it is related to devart oracle connector at first look.

  • User Avatar
    0
    velu created

    Hi, We found bug in devart drivers.

    Bug: if we set null to a variable and use that variable in query, it does not work.

    To solve this issue we make some changes in DbContext class and its works for me.

    Change:

    static DbContext()
            {
                      config.QueryOptions.UseCSharpNullComparisonBehavior = true;
            }
    

    that's ok.

    Now we are facing another issue in login controller (GetLoginResultAsync) Error: ORA-00932: inconsistent datatypes: expected - got NCLOB.

    How can i resolve this issue.

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @velu,

    Have you tried to convert NCLOB datatype to NVARCHAR you have done previously ?