Already tried clear cache, uninstalled browser, tried on the new browser, still facing the issue.
One more thing I have never faced this issue before, why?
Closed and reopen the browser.
Not getting following errors.
In browser console:
GET <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> 500 (Internal Server Error) localhost/:1 Failed to load <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 500.
Logs.txt:
INFO 2017-12-14 18:19:10,061 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>
INFO 2017-12-14 18:19:10,703 [14 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 18:19:10,796 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1605.9372ms 204 INFO 2017-12-14 18:19:10,831 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> application/json INFO 2017-12-14 18:19:10,840 [14 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 18:19:10,843 [14 ] uthentication.JwtBearer.JwtBearerHandler - Bearer was not authenticated. Failure message: No SecurityTokenValidator available for token: null ERROR 2017-12-14 18:19:10,894 [14 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HLA33P5RUDCE", Request id "0HLA33P5RUDCE:00000002": An unhandled exception was thrown by the application. System.InvalidOperationException: You must either set Authority or IntrospectionEndpoint at Microsoft.AspNetCore.Builder.OAuth2IntrospectionOptions.Validate() at IdentityModel.AspNetCore.OAuth2Introspection.PostConfigureOAuth2IntrospectionOptions.PostConfigure(String name, OAuth2IntrospectionOptions options) at Microsoft.Extensions.Options.OptionsFactory1.Create(String name) at Microsoft.Extensions.Options.OptionsMonitor
1.<>c__DisplayClass10_0.<Get>b__0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy
1.CreateValue() at Microsoft.Extensions.Options.OptionsCache1.GetOrAdd(String name, Func
1 createOptions) at Microsoft.Extensions.Options.OptionsMonitor1.Get(String name) at Microsoft.AspNetCore.Authentication.AuthenticationHandler
1.<InitializeAsync>d__42.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 Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.<GetHandlerAsync>d__5.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 IdentityServer4.Hosting.FederatedSignOut.FederatedSignoutAuthenticationHandlerProvider.<GetHandlerAsync>d__3.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 System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.AspNetCore.Authentication.AuthenticationService.<AuthenticateAsync>d__10.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 IdentityServer4.AccessTokenValidation.IdentityServerAuthenticationHandler.<HandleAuthenticateAsync>d__2.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 System.Runtime.CompilerServices.TaskAwaiter
1.GetResult() at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.<AuthenticateAsync>d__47.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 System.Runtime.CompilerServices.TaskAwaiter
1.GetResult() at Microsoft.AspNetCore.Authentication.AuthenticationService.<AuthenticateAsync>d__10.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.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.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.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.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 Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.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 Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.<Invoke>d__7.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 Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__11.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 Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.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 Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.
Now getting some weird error on accessing UI.
INFO 2017-12-14 17:38:21,091 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>
INFO 2017-12-14 17:38:21,148 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 17:38:21,589 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 416.2933ms 204 INFO 2017-12-14 17:38:22,414 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> application/json INFO 2017-12-14 17:38:22,597 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 17:38:22,644 [21 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 17:38:22,694 [21 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 17:38:22,737 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 17:38:22,849 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 17:38:32,529 [23 ] matters.Json.Internal.JsonResultExecutor - Executing JsonResult, writing value Abp.Web.Models.AjaxResponse. INFO 2017-12-14 17:38:32,541 [23 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 9816.8741ms INFO 2017-12-14 17:38:32,554 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 10382.9474ms 200 application/json; charset=utf-8 INFO 2017-12-14 17:38:32,926 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations">http://localhost:22742/api/services/app ... formations</a>
INFO 2017-12-14 17:38:32,927 [14 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 17:38:32,941 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 4.2417ms 204 INFO 2017-12-14 17:38:32,948 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations">http://localhost:22742/api/services/app ... formations</a> application/json INFO 2017-12-14 17:38:32,950 [14 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 17:38:32,957 [14 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 17:38:32,960 [14 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 17:38:32,968 [14 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 17:38:33,004 [14 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) with arguments ((null)) - ModelState is Valid ERROR 2017-12-14 17:38:33,466 [21 ] Mvc.ExceptionHandling.AbpExceptionFilter - There is no current user! System.Exception: There is no current user! at Nec.Stanchion.StanchionAppServiceBase.<GetCurrentUserAsync>d__9.MoveNext() in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Application\StanchionAppServiceBase.cs:line 36 --- 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.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 120 --- 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 System.Runtime.CompilerServices.TaskAwaiter
1.GetResult() at Nec.Stanchion.Sessions.SessionAppService.<GetCurrentLoginInformations>d__0.MoveNext() in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Application\Sessions\SessionAppService.cs:line 44 --- 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 lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.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 Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.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 Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext() INFO 2017-12-14 17:38:33,473 [21 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 17:38:33,494 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) in 505.7051ms INFO 2017-12-14 17:38:33,707 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 588.0669ms 500 application/json; charset=utf-8
I have check table [AbpLanguages], there are multiple repeated rows.
Id CreationTime CreatorUserId DeleterUserId DeletionTime DisplayName Icon IsDeleted LastModificationTime LastModifierUserId Name TenantId IsDisabled 1 2017-10-12 11:56:43.3801389 NULL NULL NULL English(US) famfamfam-flags us 0 NULL NULL en-US NULL 0 13 2017-12-14 12:43:03.4921116 NULL NULL NULL English(US) famfamfam-flags us 0 NULL NULL en-US NULL 0 25 2017-12-14 12:51:48.6370626 NULL NULL NULL English(US) famfamfam-flags us 0 NULL NULL en-US NULL 0 37 2017-12-14 13:03:58.0514043 NULL NULL NULL English(US) famfamfam-flags us 0 NULL NULL en-US NULL 0 49 2017-12-14 13:13:38.6779762 NULL NULL NULL English(US) famfamfam-flags us 0 NULL NULL en-US NULL 0
Why are these multiple rows?, Is this due to some bug? Whats the reason and what's workaround to fix it.
I'm getting an error on disabling multi tenancy by doing MultiTenancyEnabled = false; in MyProjectConsts.cs file.
FATAL 2017-12-14 12:44:30,483 [1 ] soft.AspNetCore.Hosting.Internal.WebHost - Application startup exception System.ArgumentException: An item with the same key has already been added. Key: en-US at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException(Object key) at System.Collections.Generic.Dictionary
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value) at System.Linq.Enumerable.ToDictionary[TSource,TKey](List1 source, Func
2 keySelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable
1 source, Func2 keySelector, IEqualityComparer
1 comparer) at Abp.Localization.ApplicationLanguageManager.<GetLanguagesFromDatabaseAsync>d__17.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Zero.Common\Localization\ApplicationLanguageManager.cs:line 200 --- 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.Threading.InternalAsyncHelper.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__51.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 120 --- 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.Runtime.Caching.CacheExtensions.<>c__DisplayClass5_0
2.<<GetAsync>b__0>d.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.Runtime.Caching.CacheBase.<GetAsync>d__19.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Runtime\Caching\CacheBase.cs:line 116 --- 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.Runtime.Caching.CacheExtensions.<GetAsync>d__52.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Runtime\Caching\CacheExtensions.cs:line 38 --- 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.Localization.ApplicationLanguageManager.<GetLanguageDictionary>d__15.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Zero.Common\Localization\ApplicationLanguageManager.cs:line 174 --- 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.Localization.ApplicationLanguageManager.<GetLanguagesAsync>d__8.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.Zero.Common\Localization\ApplicationLanguageManager.cs:line 57 --- 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[TResult](Task
1 task) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) --- 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[TResult](Task
1 task) at Nito.AsyncEx.AsyncContext.Run[TResult](Func1 action) at Abp.Localization.ApplicationLanguageProvider.GetLanguages() in D:\Github\aspnetboilerplate\src\Abp.Zero.Common\Localization\ApplicationLanguageProvider.cs:line 35 at Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbpRequestLocalization(IApplicationBuilder app, Action
1 optionsAction) in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\AbpApplicationBuilderExtensions.cs:line 81 at Nec.Stanchion.Web.Startup.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Web.Host\Startup\Startup.cs:line 157 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) at Microsoft.AspNetCore.ApplicationInsights.HostingStartup.ApplicationInsightsLoggerStartupFilter.<>c__DisplayClass0_1.<Configure>b__0(IApplicationBuilder builder) at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app) at Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter.<>c__DisplayClass3_0.<Configure>b__0(IApplicationBuilder app) at Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder builder) at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication() INFO 2017-12-14 12:44:31,011 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/">http://localhost:22742/</a>
INFO 2017-12-14 12:44:31,267 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 159.8427ms 500 text/html; charset=utf-8 INFO 2017-12-14 12:44:32,339 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/favicon.ico">http://localhost:22742/favicon.ico</a>
INFO 2017-12-14 12:44:32,374 [10 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 48.2391ms 500 text/html; charset=utf-8
Awesome, Thanks a lot :)
Getting error once I go to <a class="postlink" href="http://localhost:4200/app/admin/ui-customization">http://localhost:4200/app/admin/ui-customization</a>.
INFO 2017-12-14 11:42:50,242 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a>
INFO 2017-12-14 11:42:50,655 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:50,932 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 927.6734ms 204 INFO 2017-12-14 11:42:51,553 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> application/json INFO 2017-12-14 11:42:51,635 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:51,668 [21 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:51,699 [21 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:51,726 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:51,781 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 11:42:52,053 [21 ] matters.Json.Internal.JsonResultExecutor - Executing JsonResult, writing value Abp.Web.Models.AjaxResponse. INFO 2017-12-14 11:42:52,065 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 346.9879ms INFO 2017-12-14 11:42:52,070 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 771.6016ms 200 application/json; charset=utf-8 INFO 2017-12-14 11:42:52,143 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations">http://localhost:22742/api/services/app ... formations</a>
INFO 2017-12-14 11:42:52,145 [27 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:52,165 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 18.2605ms 204 INFO 2017-12-14 11:42:52,172 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations">http://localhost:22742/api/services/app ... formations</a> application/json INFO 2017-12-14 11:42:52,175 [27 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:52,177 [27 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:52,179 [27 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:52,186 [27 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:52,222 [27 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 11:42:52,276 [25 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:42:52,282 [25 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) in 91.7796ms INFO 2017-12-14 11:42:52,517 [25 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 112.9204ms 200 application/json; charset=utf-8 INFO 2017-12-14 11:42:57,362 [26 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/Notification/GetUserNotifications?MaxResultCount=3&SkipCount=0">http://localhost:22742/api/services/app ... kipCount=0</a>
INFO 2017-12-14 11:42:57,690 [26 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,709 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/Profile/GetProfilePicture">http://localhost:22742/api/services/app ... ilePicture</a>
INFO 2017-12-14 11:42:57,745 [25 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/UserLink/GetRecentlyUsedLinkedUsers">http://localhost:22742/api/services/app ... inkedUsers</a>
INFO 2017-12-14 11:42:57,764 [24 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/UserLink/GetLinkedUsers?MaxResultCount=10&SkipCount=0">http://localhost:22742/api/services/app ... kipCount=0</a>
INFO 2017-12-14 11:42:57,766 [24 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,783 [26 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 950.9729ms 204 INFO 2017-12-14 11:42:57,791 [27 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,822 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/Session/GetCurrentLoginInformations">http://localhost:22742/api/services/app ... formations</a> application/json INFO 2017-12-14 11:42:57,831 [25 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,846 [28 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/services/app/UiCustomizationSettings/GetUiManagementSettings">http://localhost:22742/api/services/app ... ntSettings</a>
INFO 2017-12-14 11:42:57,858 [28 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,879 [24 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1021.2691ms 204 INFO 2017-12-14 11:42:57,903 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1038.0198ms 204 INFO 2017-12-14 11:42:57,907 [25 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1071.0033ms 204 INFO 2017-12-14 11:42:57,908 [28 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 123.7689ms 204 INFO 2017-12-14 11:42:57,935 [26 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/Notification/GetUserNotifications?MaxResultCount=3&SkipCount=0">http://localhost:22742/api/services/app ... kipCount=0</a> application/json INFO 2017-12-14 11:42:57,941 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,952 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/Profile/GetProfilePicture">http://localhost:22742/api/services/app ... ilePicture</a> application/json INFO 2017-12-14 11:42:57,956 [26 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:57,968 [28 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/UiCustomizationSettings/GetUiManagementSettings">http://localhost:22742/api/services/app ... ntSettings</a> application/json INFO 2017-12-14 11:42:57,976 [24 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/UserLink/GetLinkedUsers?MaxResultCount=10&SkipCount=0">http://localhost:22742/api/services/app ... kipCount=0</a> application/json INFO 2017-12-14 11:42:57,980 [25 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/services/app/UserLink/GetRecentlyUsedLinkedUsers">http://localhost:22742/api/services/app ... inkedUsers</a> application/json INFO 2017-12-14 11:42:57,984 [21 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:57,988 [26 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:57,996 [27 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,002 [28 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,020 [24 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,035 [25 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,042 [26 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:58,166 [27 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:58,177 [28 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:58,291 [21 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:58,483 [24 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:58,488 [25 ] uthentication.JwtBearer.JwtBearerHandler - Successfully validated the token. INFO 2017-12-14 11:42:58,504 [26 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,559 [27 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:58,570 [28 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:58,581 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,641 [24 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:58,647 [25 ] uthentication.JwtBearer.JwtBearerHandler - AuthenticationScheme: Bearer was successfully authenticated. INFO 2017-12-14 11:42:58,654 [26 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Notifications.NotificationAppService.GetUserNotifications (Nec.Stanchion.Application) with arguments (Nec.Stanchion.Notifications.Dto.GetUserNotificationsInput) - ModelState is Valid INFO 2017-12-14 11:42:58,680 [27 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,754 [28 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,826 [24 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:58,906 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 11:42:58,919 [25 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 11:42:59,023 [28 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Configuration.UiCustomizationSettingsAppService.GetUiManagementSettings (Nec.Stanchion.Application) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 11:42:59,100 [27 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Authorization.Users.Profile.ProfileAppService.GetProfilePicture (Nec.Stanchion.Application) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 11:42:59,219 [25 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Authorization.Users.UserLinkAppService.GetRecentlyUsedLinkedUsers (Nec.Stanchion.Application) with arguments ((null)) - ModelState is Valid INFO 2017-12-14 11:42:59,230 [24 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.Authorization.Users.UserLinkAppService.GetLinkedUsers (Nec.Stanchion.Application) with arguments (Nec.Stanchion.Authorization.Users.Dto.GetLinkedUsersInput) - ModelState is Valid INFO 2017-12-14 11:42:59,271 [29 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:42:59,372 [21 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:42:59,385 [27 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:42:59,444 [29 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Notifications.NotificationAppService.GetUserNotifications (Nec.Stanchion.Application) in 1222.2261ms INFO 2017-12-14 11:42:59,569 [29 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1555.575ms 200 application/json; charset=utf-8 INFO 2017-12-14 11:42:59,703 [27 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Authorization.Users.Profile.ProfileAppService.GetProfilePicture (Nec.Stanchion.Application) in 822.1125ms INFO 2017-12-14 11:42:59,890 [27 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1772.8936ms 200 application/json; charset=utf-8 ERROR 2017-12-14 11:42:59,907 [26 ] Mvc.ExceptionHandling.AbpExceptionFilter - There is no setting defined with name: App.UiManagement.LayoutType Abp.AbpException: There is no setting defined with name: App.UiManagement.LayoutType at Abp.Configuration.SettingDefinitionManager.GetSettingDefinition(String name) in D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingDefinitionManager.cs:line 49 at Abp.Configuration.SettingManager.<GetSettingValueInternalAsync>d__31.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingManager.cs:line 230 --- 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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Nec.Stanchion.Configuration.UiCustomizationSettingsAppService.
Thanks, it worked.
Still getting
GET <a class="postlink" href="http://localhost:4200/assets/common/images/app-logo-on-null.png">http://localhost:4200/assets/common/ima ... n-null.png</a> 404 (Not Found)
checked assets/common/image folder pp-logo-on-null.png not present in the path.
private async Task<List<IncomeStastistic>> GetDailyIncomeStatisticsData(DateTime startDate, DateTime endDate)
{
var dailyRecords = await _subscriptionPaymentRepository.GetAll()
.Where(s => s.CreationTime >= startDate &&
s.CreationTime <= endDate &&
s.Status == SubscriptionPaymentStatus.Completed)
.GroupBy(s => new DateTime(s.CreationTime.Year, s.CreationTime.Month, s.CreationTime.Day))
.Select(s => new IncomeStastistic
{
Date = s.First().CreationTime.Date,
Amount = s.DefaultIfEmpty(new SubscriptionPayment()).Sum(c => c.Amount)
})
.ToListAsync();
FillGapsInDailyIncomeStatistics(dailyRecords, startDate, endDate);
return dailyRecords.OrderBy(s => s.Date).ToList();
}
private static void FillGapsInDailyIncomeStatistics(ICollection<IncomeStastistic> dailyRecords, DateTime startDate, DateTime endDate)
{
var currentDay = startDate;
while (currentDay <= endDate)
{
if (dailyRecords.All(d => d.Date != currentDay.Date))
{
dailyRecords.Add(new IncomeStastistic(currentDay));
}
currentDay = currentDay.AddDays(1);
}
}