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)
-
0
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.
-
0
Hi,
Given URL is not working.
Thanks.
-
0
You must login to github with your invited github username velayuthams.
Thanks.
-
0
Hi,
Successfully hit breakpointin given namespace.
[https://drive.google.com/file/d/0BzSirtYGe7EHVlo0Z2p0aFZzWU0/view?usp=sharing])
Thanks
-
0
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.
-
0
Hi ,
I'm also facing this issue. with aspnet Core + angular 4 (not combined solution) v4.2.1
Abdourahmani
-
0
Hi @abdourahmani,
Do you use Sql Server ?
Thanks.
-
0
Hi,
We are using oracle 11G and Devart drivers for oracle connection.
ASPNETZERO(CORE) combined + Angular. Thanks
-
0
<cite>ismcagdas: </cite> Hi @abdourahmani,
Do you use Sql Server ?
Thanks.
Yes, I'm using Sql Server.
-
0
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.
-
0
<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.
-
0
<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
-
0
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.
-
0
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.
-
0
Hi @velu,
Have you tried to convert NCLOB datatype to NVARCHAR you have done previously ?