Hi @ismcagdas
I replaced the <button> for the dropdownToggle with an <a> but that didn't work either ... It doesn't trigger submit anymore, but the menu still does not show.
My guess is that is has something to do with the dropdown being part of a modal, which is not beeing displayed right from the beginning.
I will post an update here, as soon as I found a solution.
Hi @sduffy
Until a few weeks ago I had a similar setup as you, only less RAM (8 GB). Currently I'm on a Intel Xeon E3-1225 V2 and 32 GB.
Never had any issues running ASPNETZERO (Core + Angular).
Executing 'npm run hmr' is still pretty slow (the '92% after chunk asset optimization'-part), but that's the only 'problem' there is so far.
I was able to figure out the problem and solve it. It was due to a change I falsely made to QueryStringTokenResolver(…) in AuthConfigurer.cs. All is working fine now!
Unmodified ASPNETZERO works as expected. So, there is something wrong with my project … Okay, that's all I wanted to make sure.
@ismcagdas I just checked demo.aspnetzero.com with different browsers and it works as expected in current version of Firefox and Chrome. In Edge it got error notifications when I tried to send messages. Now it kind of works as long as the user I want to chat with is logged in. But the messages do not get displayed in chat window - I need to refresh the page to see latest messages. Anyway, this looks like there is an issue with Edge and not with ASPNETZERO.
In dev-environment it still doesn't work in any of the browsers. Here are the log-entries from Logs.txt (opened chat and tried to send a single message):
INFO 2018-09-10 10:11:21,605 [22 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS http://localhost:22742/api/services/app/Chat/GetUserChatMessages?UserId=1
INFO 2018-09-10 10:11:21,605 [22 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2018-09-10 10:11:21,605 [22 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 0.2934ms 204
INFO 2018-09-10 10:11:21,619 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:22742/api/services/app/Chat/GetUserChatMessages?UserId=1 application/json
INFO 2018-09-10 10:11:21,619 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2018-09-10 10:11:21,619 [23 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token.
WARN 2018-09-10 10:11:21,619 [23 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported cultures 'null'.
WARN 2018-09-10 10:11:21,619 [23 ] calization.RequestLocalizationMiddleware - AbpUserRequestCultureProvider returned the following unsupported UI Cultures 'null'.
INFO 2018-09-10 10:11:21,627 [23 ] ore.Mvc.Internal.ControllerActionInvoker - Route matched with {area = "app", action = "GetUserChatMessages", controller = "Chat"}. Executing action CompanyName.ProjectName.Chat.ChatAppService.GetUserChatMessages (CompanyName.ProjectName.Application)
INFO 2018-09-10 10:11:21,627 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2018-09-10 10:11:21,635 [23 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method CompanyName.ProjectName.Chat.ChatAppService.GetUserChatMessages (CompanyName.ProjectName.Application) with arguments (CompanyName.ProjectName.Chat.Dto.GetUserChatMessagesInput) - Validation state: Valid
INFO 2018-09-10 10:11:21,685 [4 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action method CompanyName.ProjectName.Chat.ChatAppService.GetUserChatMessages (CompanyName.ProjectName.Application), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 49.1124ms.
INFO 2018-09-10 10:11:21,685 [4 ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO 2018-09-10 10:11:21,687 [4 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action CompanyName.ProjectName.Chat.ChatAppService.GetUserChatMessages (CompanyName.ProjectName.Application) in 60.0389ms
INFO 2018-09-10 10:11:21,688 [4 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 68.9666ms 200 application/json; charset=utf-8
WARN 2018-09-10 10:11:32,698 [23 ] CompanyName.ProjectName.Web.Chat.SignalR.ChatHub - Could not send chat message to user: 1
WARN 2018-09-10 10:11:32,704 [23 ] CompanyName.ProjectName.Web.Chat.SignalR.ChatHub - Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Authorization.AuthorizationHelper.<CheckPermissions>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
at Abp.Authorization.AuthorizationHelperExtensions.Authorize(IAuthorizationHelper authorizationHelper, MethodInfo methodInfo, Type type)
at Abp.Authorization.AuthorizationInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ChatMessageManagerProxy.SendMessageAsync(UserIdentifier sender, UserIdentifier receiver, String message, String senderTenancyName, String senderUserName, Nullable`1 senderProfilePictureId)
at CompanyName.ProjectName.Web.Chat.SignalR.ChatHub.<SendMessage>d__5.MoveNext()
Abp.Authorization.AbpAuthorizationException: Current user did not login to the application!
at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Authorization.AuthorizationHelper.<CheckPermissions>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
at Abp.Authorization.AuthorizationHelperExtensions.Authorize(IAuthorizationHelper authorizationHelper, MethodInfo methodInfo, Type type)
at Abp.Authorization.AuthorizationInterceptor.Intercept(IInvocation invocation)
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.DynamicProxy.AbstractInvocation.Proceed()
at Castle.Proxies.ChatMessageManagerProxy.SendMessageAsync(UserIdentifier sender, UserIdentifier receiver, String message, String senderTenancyName, String senderUserName, Nullable`1 senderProfilePictureId)
at CompanyName.ProjectName.Web.Chat.SignalR.ChatHub.<SendMessage>d__5.MoveNext()
Additional Information:
I was working on a feature using SignalR. Hub was working as expected, only when i switched to use the Hub through IHubContext<MyHubName> (just like in SignalRChatCommunicator.cs) I realized that it didn't work at all - the client never received any messages. After trying to debug without success, I checked if chat was working properly (as it also uses IHubContext) - which doesn't seem to be the case ...
Okay, there was an issue with the connection to the DB - it's working now 8-)
Yes, swagger ui looks good so far!
But authorization doesn't work. At first, I thought it wasn't a big problem - the URI was lacking the 'project-name', so I edited Web.Host\wwwroot\swagger\ui\abp.swagger.js. But there is still something else going wrong as I now receive HTTP 500 when trying to authenticate.
I was happy too soon - the API itself is still not working … there must be even more places left to be edited.
Great :) that's way better!