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);
}
}
Logs.txt content:
INFO 2017-12-14 09:04:41,629 [19 ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Nec.Stanchion.MultiTenancy.HostDashboard.HostDashboardAppService.GetDashboardStatisticsData (Nec.Stanchion.Application) with arguments (Nec.Stanchion.MultiTenancy.HostDashboard.Dto.GetDashboardDataInput) - ModelState is Valid ERROR 2017-12-14 09:04:43,009 [3 ] Mvc.ExceptionHandling.AbpExceptionFilter - Expression of type 'Nec.Stanchion.MultiTenancy.Payments.SubscriptionPayment' cannot be used for parameter of type 'System.Decimal' of method 'System.Collections.Generic.IAsyncEnumerable
1[System.Decimal] DefaultIfEmpty[Decimal](System.Collections.Generic.IAsyncEnumerable
1[System.Decimal], System.Decimal)' Parameter name: arg1 System.ArgumentException: Expression of type 'Nec.Stanchion.MultiTenancy.Payments.SubscriptionPayment' cannot be used for parameter of type 'System.Decimal' of method 'System.Collections.Generic.IAsyncEnumerable1[System.Decimal] DefaultIfEmpty[Decimal](System.Collections.Generic.IAsyncEnumerable
1[System.Decimal], System.Decimal)' Parameter name: arg1 at System.Dynamic.Utils.ExpressionUtils.ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arguments, ParameterInfo pi, String methodParamName, String argumentParamName, Int32 index) at System.Linq.Expressions.Expression.Call(MethodInfo method, Expression arg0, Expression arg1) at Microsoft.EntityFrameworkCore.Query.ResultOperatorHandler.HandleDefaultIfEmpty(EntityQueryModelVisitor entityQueryModelVisitor, DefaultIfEmptyResultOperator defaultIfEmptyResultOperator, QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.ResultOperatorHandler.<>c.<.cctor>b__33_7(EntityQueryModelVisitor v, ResultOperatorBase r, QueryModel q) at Microsoft.EntityFrameworkCore.Query.ResultOperatorHandler.HandleResultOperator(EntityQueryModelVisitor entityQueryModelVisitor, ResultOperatorBase resultOperator, QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.Internal.RelationalResultOperatorHandler.HandlerContext.EvalOnClient(Boolean requiresClientResultOperator) at Microsoft.EntityFrameworkCore.Query.Internal.RelationalResultOperatorHandler.HandleResultOperator(EntityQueryModelVisitor entityQueryModelVisitor, ResultOperatorBase resultOperator, QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.VisitResultOperator(ResultOperatorBase resultOperator, QueryModel queryModel, Int32 index) at Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor.VisitResultOperator(ResultOperatorBase resultOperator, QueryModel queryModel, Int32 index) at Remotion.Linq.QueryModelVisitorBase.VisitResultOperators(ObservableCollection1 resultOperators, QueryModel queryModel) at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.VisitQueryModel(QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor.VisitQueryModel(QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.ProjectionExpressionVisitor.VisitSubQuery(SubQueryExpression expression) at Remotion.Linq.Clauses.Expressions.SubQueryExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.RelationalProjectionExpressionVisitor.Visit(Expression expression) at System.Linq.Expressions.ExpressionVisitor.VisitMemberAssignment(MemberAssignment node) at System.Linq.Expressions.ExpressionVisitor.VisitMemberBinding(MemberBinding node) at System.Linq.Expressions.ExpressionVisitor.Visit[T](ReadOnlyCollection
1 nodes, Func2 elementVisitor) at System.Linq.Expressions.ExpressionVisitor.VisitMemberInit(MemberInitExpression node) at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.RelationalProjectionExpressionVisitor.VisitMemberInit(MemberInitExpression memberInitExpression) at System.Linq.Expressions.MemberInitExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.RelationalProjectionExpressionVisitor.Visit(Expression expression) at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.VisitSelectClause(SelectClause selectClause, QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor.VisitSelectClause(SelectClause selectClause, QueryModel queryModel) at Remotion.Linq.Clauses.SelectClause.Accept(IQueryModelVisitor visitor, QueryModel queryModel) at Remotion.Linq.QueryModelVisitorBase.VisitQueryModel(QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.VisitQueryModel(QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.RelationalQueryModelVisitor.VisitQueryModel(QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.EntityQueryModelVisitor.CreateAsyncQueryExecutor[TResult](QueryModel queryModel) at Microsoft.EntityFrameworkCore.Storage.Database.CompileAsyncQuery[TResult](QueryModel queryModel) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileAsyncQueryCore[TResult](Expression query, INodeTypeProvider nodeTypeProvider, IDatabase database) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass24_0
1.<CompileAsyncQuery>b__0() at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddQueryCore[TFunc](Object cacheKey, Func1 compiler) at Microsoft.EntityFrameworkCore.Query.Internal.CompiledQueryCache.GetOrAddAsyncQuery[TResult](Object cacheKey, Func
1 compiler) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileAsyncQuery[TResult](Expression query) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query) at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.ExecuteAsync[TResult](Expression expression) at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable1.System.Collections.Generic.IAsyncEnumerable<TResult>.GetEnumerator() at System.Linq.AsyncEnumerable.<Aggregate_>d__6
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 Nec.Stanchion.MultiTenancy.HostDashboard.IncomeStatisticsService.<GetDailyIncomeStatisticsData>d__2.MoveNext() in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Application\MultiTenancy\HostDashboard\IncomeStatisticsReporter.cs:line 24 --- 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.MultiTenancy.HostDashboard.IncomeStatisticsService.<GetIncomeStatisticsData>d__4.MoveNext() in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Application\MultiTenancy\HostDashboard\IncomeStatisticsReporter.cs:line 62 --- 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.MultiTenancy.HostDashboard.HostDashboardAppService.
Thanks, solved it.
Now getting 500 Internal Server Error while running UI.
http://localhost:22742/api/services/app/HostDashboard/GetDashboardStatisticsData?IncomeStatisticsDateInterval=1&StartDate=2017-12-07T00%3A00%3A00.000Z&EndDate=2017-12-14T23%3A59%3A59.999Z
And one more error.
http://localhost:4200/assets/common/images/app-logo-on-null.png 404 (Not Found)
I have made some changes and tried to fix the code on running server-side code.
But now I'm getting the following error.
FATAL 2017-12-14 08:43:32,771 [3 ] oCore.Licensing.AspNetZeroLicenseChecker - Failed to validate project name. Should not rename a project downloaded from aspnetzero.com. You can contact to <a href="mailto:[email protected]">[email protected]</a> if you are using a licensed product. Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.pdxo9JJAGSNSUSdR5x(Object ) at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.GetHashedProjectName() at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.IsProjectNameValid() at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.<CheckInternal>d__9.MoveNext()
I have just found that I was using old StanchionWebHostModule.cs file (it could be due to copy paste).
I'm getting the exception on running server-side code in StanchionWebHostModule.cs and Startup.cs files.
public override void PreInitialize()
{
Configuration.Modules.AbpWebCommon().MultiTenancy.DomainFormat = _appConfiguration["App:ServerRootAddress"] ?? "http://localhost:22742/";
Configuration.Modules.AspNetZero().LicenseCode = _appConfiguration["AbpZeroLicenseCode"];
}
Exception: Castle.MicroKernel.ComponentNotFoundException: 'No component for supporting the service Abp.AspNetZeroCore.AspNetZeroConfiguration was found'
Startup.cs exception.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
//Initializes ABP framework.
app.UseAbp(options =>
{
options.UseAbpRequestLocalization = false;
});
Castle.MicroKernel.ComponentNotFoundException: 'No component for supporting the service Abp.AspNetZeroCore.AspNetZeroConfiguration was found'
Browser error:
An error occurred while starting the application. ComponentNotFoundException: No component for supporting the service Abp.AspNetZeroCore.AspNetZeroConfiguration was found Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)
ComponentNotFoundException: No component for supporting the service Abp.AspNetZeroCore.AspNetZeroConfiguration was found Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) Castle.Windsor.WindsorContainer.Resolve<T>() Abp.Configuration.DictionaryBasedConfig.GetOrCreate<T>(string name, Func<T> creator) in DictionaryBasedConfig.cs Abp.AspNetZeroCore.AspNetZeroConfigurationExtensions.AspNetZero(IModuleConfigurations modules) Nec.Stanchion.Web.Startup.StanchionWebHostModule.PreInitialize() in StanchionWebHostModule.cs + Configuration.Modules.AspNetZero().LicenseCode = _appConfiguration["AbpZeroLicenseCode"]; System.Collections.Generic.List.ForEach(Action<T> action) Abp.Modules.AbpModuleManager.StartModules() in AbpModuleManager.cs Abp.AbpBootstrapper.Initialize() in AbpBootstrapper.cs Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp(IApplicationBuilder app, Action<AbpApplicationBuilderOptions> optionsAction) in AbpApplicationBuilderExtensions.cs Nec.Stanchion.Web.Startup.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in Startup.cs + app.UseAbp(options => System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) Microsoft.AspNetCore.ApplicationInsights.HostingStartup.ApplicationInsightsLoggerStartupFilter+<>c__DisplayClass0_1.<Configure>b__0(IApplicationBuilder builder) Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app) Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter+<>c__DisplayClass3_0.<Configure>b__0(IApplicationBuilder app) Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter+<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder builder) Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
But using Abp.AspNetZeroCore.Web.Authentication.External; it already there in the file TokenAuthController.
Please ignore previous logs, I'm sending you fresh logs.
INFO 2017-12-14 06:24:42,464 [33 ] 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 06:24:42,633 [33 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:42,942 [33 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 320.6279ms 204
INFO 2017-12-14 06:24:42,991 [33 ] 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 06:24:43,093 [33 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:43,118 [33 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:43,383 [33 ] 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 06:24:43,627 [31 ] matters.Json.Internal.JsonResultExecutor - Executing JsonResult, writing value Abp.Web.Models.AjaxResponse.
INFO 2017-12-14 06:24:43,646 [31 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Abp.AspNetCore.Mvc.Controllers.AbpUserConfigurationController.GetAll (Abp.AspNetCore) in 518.0708ms
INFO 2017-12-14 06:24:43,654 [31 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 677.926ms 200 application/json; charset=utf-8
INFO 2017-12-14 06:24:43,730 [31 ] 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 06:24:43,749 [31 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:43,954 [31 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 29.9021ms 204
INFO 2017-12-14 06:24:44,133 [31 ] 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 06:24:44,148 [31 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:44,156 [31 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:44,313 [31 ] 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 06:24:44,323 [31 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext.
INFO 2017-12-14 06:24:44,336 [31 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) in 170.3352ms
INFO 2017-12-14 06:24:44,408 [31 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 281.0123ms 200 application/json; charset=utf-8
INFO 2017-12-14 06:24:48,316 [31 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/TokenAuth/GetExternalAuthenticationProviders">http://localhost:22742/api/TokenAuth/Ge ... nProviders</a>
INFO 2017-12-14 06:24:48,318 [31 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:48,335 [31 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 22.6379ms 204
INFO 2017-12-14 06:24:49,476 [36 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/api/TokenAuth/GetExternalAuthenticationProviders">http://localhost:22742/api/TokenAuth/Ge ... nProviders</a> application/json
INFO 2017-12-14 06:24:49,478 [36 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
INFO 2017-12-14 06:24:49,492 [36 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful.
ERROR 2017-12-14 06:24:49,494 [36 ] Mvc.ExceptionHandling.AbpExceptionFilter - Can't create component 'Nec.Stanchion.Web.Controllers.TokenAuthController' as it has dependencies to be satisfied.
'Nec.Stanchion.Web.Controllers.TokenAuthController' is waiting for the following dependencies:
Castle.MicroKernel.Handlers.HandlerException: Can't create component 'Nec.Stanchion.Web.Controllers.TokenAuthController' as it has dependencies to be satisfied.
'Nec.Stanchion.Web.Controllers.TokenAuthController' is waiting for the following dependencies:
Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.
at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency() at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy) at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional) in D:\Github\castle-windsor-ms-adapter\src\Castle.Windsor.MsDependencyInjection\ScopedWindsorServiceProvider.cs:line 55 at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext) at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.<CreateControllerFactory>g__CreateController|0(ControllerContext controllerContext) 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 06:24:49,512 [36 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 06:24:49,532 [36 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (Nec.Stanchion.Web.Core) in 27.596ms INFO 2017-12-14 06:24:49,539 [36 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 71.091ms 500 application/json; charset=utf-8