Open Closed

Build error on upgrading to core 2.0 #4319


0
manojreddy created

I have taken the latest code based on 2.0 and tried to merge it with old code.

I'm getting too many errors on build solution, please help.

Severity Code Description Project File Line Suppression State Error CS0117 'AppSettings' does not contain a definition for 'HostManagement' Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 169 Active Error CS0117 'AppSettings' does not contain a definition for 'HostManagement' Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 170 Active Error CS1061 'IModuleConfigurations' does not contain a definition for 'AspNetZero' and no extension method 'AspNetZero' accepting a first argument of type 'IModuleConfigurations' could be found (are you missing a using directive or an assembly reference?) Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\Startup\ABCDWebFrontEndModule.cs 28 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\bin\Debug\netcoreapp1.1\Test.ABCD.Application.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Data\bin\Debug\netcoreapp1.1\Test.ABCD.Business.Repositories.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Dto\bin\Debug\netcoreapp1.1\Test.ABCD.Business.Dto.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Services\bin\Debug\netcoreapp1.1\Test.ABCD.Business.Services.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Core\bin\Debug\netcoreapp1.1\Test.ABCD.Web.Core.dll' could not be found Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\CSC 1 Active Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Test.ABCD.Application.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.ConsoleApiClient C:\Users\myname\source\repos\ABCD\aspnet-core\test\Test.ABCD.ConsoleApiClient\Test.ABCD.ConsoleApiClient.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Business.Dto C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Dto\Test.ABCD.Business.Dto.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Business.Repositories C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Data\Test.ABCD.Business.Repositories.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Business.Services C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Business.Services\Test.ABCD.Business.Services.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Web.Core C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Core\Test.ABCD.Web.Core.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Tests C:\Users\myname\source\repos\ABCD\aspnet-core\test\Test.ABCD.Tests\Test.ABCD.Tests.csproj 1 Error NU1201 Project Test.ABCD.Application.Shared is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Project Test.ABCD.Application.Shared supports: netstandard2.0 (.NETStandard,Version=v2.0) Test.ABCD.Web.Host C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Host\Test.ABCD.Web.Host.csproj 1 Error CS0103 The name 'DatabaseCheckHelper' does not exist in the current context Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 112 Active Error CS0103 The name 'DefaultLanguagesCreator' does not exist in the current context Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 86 Active Error CS0103 The name 'SeedHelper' does not exist in the current context Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 56 Active Error CS0234 The type or namespace name 'AspNetZeroCore' does not exist in the namespace 'Abp' (are you missing an assembly reference?) Test.ABCD.Web.Public C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\Startup\ABCDWebFrontEndModule.cs 1 Active Error CS0234 The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 20 Active Error CS0234 The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 20 Active Error CS0246 The type or namespace name 'HostBillingSettingsEditDto' could not be found (are you missing a using directive or an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 167 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 23 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 23 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 24 Active Error CS0234 The type or namespace name 'Migrations' does not exist in the namespace 'Test.ABCD' (are you missing an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 24 Active Error CS0246 The type or namespace name 'ABCDDbContext' could not be found (are you missing a using directive or an assembly reference?) Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 34 Active Error CS0305 Using the generic type 'AbpZeroDbMigrator<TDbContext>' requires 1 type arguments Test.ABCD.Application C:\Users\myname\source\repos\ABCD\aspnet-core\src\Test.ABCD.Application\Install\InstallAppService.cs 38 Active


71 Answer(s)
  • 0
    mumfie created

    Hi ManojReddy In my limited experience of upgrading I download the latest ASPNetZero project run yarn , gulp etc , amend references to database name in json files etc to create a new database then verify the latest solution compiles and runs. I then re-introduce my changes to the latest template starting with domain entities, dtos step by step using the vs2017 solution search to find any base template files that have moved location similar to following pages

    <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/96#issuecomment-268093697">https://github.com/aspnetzero/aspnet-ze ... -268093697</a> <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/397">https://github.com/aspnetzero/aspnet-ze ... issues/397</a>

    hth mumfie

  • 0
    manojreddy created

    Sorry, But it's not helpful.

  • 0
    aaron created
    Support Team

    That seems limited to 2 files. Can you check if your files have the correct using directives?

  • 0
    manojreddy created

    Getting error on the lines in file AbpZeroTemplateWebFrontEndModule, why?

    using Abp.AspNetZeroCore;

    Configuration.Modules.AspNetZero().LicenseCode = _appConfiguration["AbpZeroLicenseCode"];

  • 0
    aaron created
    Support Team

    Can you check if you installed Abp.AspNetZeroCore package? See: MyCompanyName.AbpZeroTemplate.Core.csproj#L31

  • 0
    manojreddy created

    Whats difference between Application and Application.Shared project?

  • 0
    mumfie created

    <cite>ManojReddy: </cite> Whats difference between Application and Application.Shared project?

    <a class="postlink" href="https://aspnetzero.com/Documents/Development-Guide-Core#solution-structure-layers">https://aspnetzero.com/Documents/Develo ... ure-layers</a>

  • 0
    manojreddy created

    Resolved all errors.

    only getting one, please help.

    Severity	Code	Description	Project	File	Line	Suppression State
    Error	CS7036	There is no argument given that corresponds to the required formal parameter 'tenantCache' of 'WebUrlServiceBase.WebUrlServiceBase(IHostingEnvironment, ITenantCache)'	Test.ABCD.Web.Public	C:\Users\viveknuna\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\Url\WebUrlService.cs	12	Active
    
  • 0
    manojreddy created

    Resolved all errors.

    only getting one, please help.

    Severity	Code	Description	Project	File	Line	Suppression State
    Error	CS7036	There is no argument given that corresponds to the required formal parameter 'tenantCache' of 'WebUrlServiceBase.WebUrlServiceBase(IHostingEnvironment, ITenantCache)'	Test.ABCD.Web.Public	C:\Users\viveknuna\source\repos\ABCD\aspnet-core\src\Test.ABCD.Web.Public\Url\WebUrlService.cs	12	Active
    

    in this code.

    public WebUrlService(
                IAppConfigurationAccessor appConfigurationAccessor) :
                base(appConfigurationAccessor)
            {
            }
    
  • 0
    aaron created
    Support Team

    WebUrlServiceBase no longer has ITenantCache in its constructor.

  • 0
    manojreddy created

    Getting error on npm start. I have observed previously I didnt have Application.Shared project. proxy is not getting generated for Application.Shared classes. Please help

    ERROR in src/account/email-activation/confirm-email.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/account/email-activation/confirm-email.component.ts(4,31): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ActivateEmailInput'. src/account/email-activation/email-activation.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/account/email-activation/email-activation.component.ts(4,31): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'SendEmailActivationLinkInput'. src/account/password/forgot-password.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/account/password/forgot-password.component.ts(4,31): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'SendPasswordResetCodeInput'. src/account/password/reset-password.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/account/password/reset-password.component.ts(4,31): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ResetPasswordOutput'. src/account/password/reset-password.component.ts(37,20): error TS2339: Property 'userId' does not exist on type 'ResetPasswordModel'. src/account/password/reset-password.component.ts(38,20): error TS2339: Property 'resetCode' does not exist on type 'ResetPasswordModel'. src/account/password/reset-password.component.ts(64,76): error TS2339: Property 'password' does not exist on type 'ResetPasswordModel'. src/account/password/reset-password.model.ts(1,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ResetPasswordInput'. src/account/register/register.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/account/register/register.component.ts(49,44): error TS2339: Property 'captchaResponse' does not exist on type 'RegisterModel'. src/account/register/register.component.ts(66,90): error TS2339: Property 'userName' does not exist on type 'RegisterModel'. src/account/register/register.component.ts(67,76): error TS2339: Property 'password' does not exist on type 'RegisterModel'. src/account/register/register.component.ts(73,20): error TS2339: Property 'captchaResponse' does not exist on type 'RegisterModel'. src/account/register/register.model.ts(1,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'RegisterInput'. src/account/shared/tenant-change-modal.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/account/shared/tenant-change-modal.component.ts(5,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'IsTenantAvailableInput'. src/account/shared/tenant-change-modal.component.ts(6,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/AppEnums"' has no exported member 'AppTenantAvailabilityState'. src/account/shared/tenant-change.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/app/admin/audit-logs/audit-log-detail-modal.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AuditLogListDto'. src/app/admin/audit-logs/audit-logs.component.ts(2,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AuditLogServiceProxy'. src/app/admin/audit-logs/audit-logs.component.ts(2,32): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AuditLogListDto'. src/app/admin/languages/create-or-edit-language-modal.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'LanguageServiceProxy'. src/app/admin/languages/create-or-edit-language-modal.component.ts(3,32): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ApplicationLanguageEditDto'. src/app/admin/languages/create-or-edit-language-modal.component.ts(3,60): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'CreateOrUpdateLanguageInput'. src/app/admin/languages/edit-text-modal.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'LanguageServiceProxy'. src/app/admin/languages/edit-text-modal.component.ts(3,32): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ApplicationLanguageEditDto'. src/app/admin/languages/edit-text-modal.component.ts(3,60): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'UpdateLanguageTextInput'. src/app/admin/languages/language-texts.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'LanguageServiceProxy'. src/app/admin/languages/languages.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'LanguageServiceProxy'. src/app/admin/languages/languages.component.ts(3,32): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ApplicationLanguageListDto'. src/app/admin/languages/languages.component.ts(3,60): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'SetDefaultLanguageInput'. src/app/admin/organization-units/add-member-modal.component.ts(6,5): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'UsersToOrganizationUnitInput'. src/app/admin/organization-units/add-member-modal.component.ts(7,5): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'OrganizationUnitServiceProxy'. src/app/admin/organization-units/add-member-modal.component.ts(8,5): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'FindOrganizationUnitUsersInput'. src/app/admin/organization-units/create-or-edit-unit-modal.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'OrganizationUnitServiceProxy'. src/app/admin/organization-units/create-or-edit-unit-modal.component.ts(3,40): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'CreateOrganizationUnitInput'. src/app/admin/organization-units/create-or-edit-unit-modal.component.ts(3,69): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'UpdateOrganizationUnitInput'. src/app/admin/organization-units/organization-tree.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'OrganizationUnitServiceProxy'. src/app/admin/organization-units/organization-tree.component.ts(3,40): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ListResultDtoOfOrganizationUnitDto'. src/app/admin/organization-units/organization-tree.component.ts(3,97): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'MoveOrganizationUnitInput'.src/app/admin/organization-units/organization-tree.component.ts(159,26): error TS2339: Property 'id' does not exist on type '{}'. src/app/admin/organization-units/organization-tree.component.ts(160,30): error TS2339: Property 'parentId' does not exist on type '{}'. src/app/admin/organization-units/organization-tree.component.ts(160,46): error TS2339: Property 'parentId' does not exist on type '{}'. src/app/admin/organization-units/organization-tree.component.ts(161,28): error TS2339: Property 'code' does not exist on type '{}'. src/app/admin/organization-units/organization-tree.component.ts(162,35): error TS2339: Property 'displayName' does not exist on type '{}'. src/app/admin/organization-units/organization-tree.component.ts(163,35): error TS2339: Property 'memberCount' does not exist on type '{}'. src/app/admin/organization-units/organization-tree.component.ts(164,47): error TS2345: Argument of type '{}' is not assignable to parameter of type 'OrganizationUnitDto | IOrganizationUnitOnTree'. Type '{}' is not assignable to type 'IOrganizationUnitOnTree'. Property 'id' is missing in type '{}'. src/app/admin/organization-units/organization-unit-members.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'OrganizationUnitServiceProxy'. src/app/admin/organization-units/organization-unit-members.component.ts(4,40): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'OrganizationUnitUserListDto'. src/app/admin/users/impersonation.service.ts(2,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/app/admin/users/impersonation.service.ts(2,31): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ImpersonateInput'. src/app/admin/users/impersonation.service.ts(2,49): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'ImpersonateOutput'. src/app/shared/layout/linked-account.service.ts(2,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'AccountServiceProxy'. src/app/shared/layout/linked-account.service.ts(2,31): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'SwitchToLinkedAccountInput'. src/app/shared/layout/linked-account.service.ts(2,59): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'SwitchToLinkedAccountOutput'. src/app/shared/layout/notifications/UserNotificationHelper.ts(2,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'NotificationServiceProxy'. src/app/shared/layout/notifications/UserNotificationHelper.ts(2,36): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'EntityDtoOfGuid'. src/app/shared/layout/notifications/header-notifications.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'NotificationServiceProxy'. src/app/shared/layout/notifications/header-notifications.component.ts(3,36): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'GetNotificationsOutput'. src/app/shared/layout/notifications/header-notifications.component.ts(3,60): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'UserNotification'. src/app/shared/layout/notifications/notification-settings-modal.component.ts(4,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'NotificationServiceProxy'. src/app/shared/layout/notifications/notification-settings-modal.component.ts(4,36): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'GetNotificationSettingsOutput'. src/app/shared/layout/notifications/notification-settings-modal.component.ts(4,67): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'UpdateNotificationSettingsInput'. src/app/shared/layout/notifications/notification-settings-modal.component.ts(4,100): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'NotificationSubscriptionDto'. src/app/shared/layout/notifications/notification-settings-modal.component.ts(46,39): error TS2339: Property 'name' does not exist on type '{}'. src/app/shared/layout/notifications/notification-settings-modal.component.ts(47,47): error TS2339: Property 'isSubscribed' does not exist on type '{}'. src/app/shared/layout/notifications/notifications.component.ts(3,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'NotificationServiceProxy'. src/app/shared/layout/notifications/notifications.component.ts(3,36): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-proxies"' has no exported member 'UserNotification'. src/app/shared/layout/notifications/notifications.component.ts(6,10): error TS2305: Module '"C:/Users/myname/source/repos/MyProject/angular/src/shared/AppEnums"' has no exported member 'AppUserNotificationState'. src/shared/service-proxies/service-proxy.module.ts(7,27): error TS2551: Property 'AuditLogServiceProxy' does not exist on type 'typeof "C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-prox...'. Did you mean 'EditionServiceProxy'? src/shared/service-proxies/service-proxy.module.ts(15,27): error TS2339: Property 'LanguageServiceProxy' does not exist on type 'typeof "C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-prox...'. src/shared/service-proxies/service-proxy.module.ts(17,27): error TS2339: Property 'OrganizationUnitServiceProxy' does not exist on type 'typeof "C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-prox...'. src/shared/service-proxies/service-proxy.module.ts(30,27): error TS2551: Property 'AccountServiceProxy' does not exist on type 'typeof "C:/Users/myname/source/repos/MyProject/angular/src/shared/service-proxies/service-prox...'. Did you mean 'CommonServiceProxy'?

  • 0
    manojreddy created

    Fixed all compilation errors, But now getting the runtime error while accessing <a class="postlink" href="http://localhost:4200/">http://localhost:4200/</a> URL.

    GET <a class="postlink" href="http://localhost:4200/scripts.bundle.js">http://localhost:4200/scripts.bundle.js</a> net::ERR_ABORTED localhost/:21 GET <a class="postlink" href="http://localhost:4200/scripts.bundle.js">http://localhost:4200/scripts.bundle.js</a> 404 (Not Found) core.js:1350 ERROR ReferenceError: abp is not defined at Array.eval (root.module.ts:28) at ApplicationInitStatus.runInitializers (core.js:3451) at eval (core.js:5379) at _callAndReportToErrorHandler (core.js:5558) at eval (core.js:5377) at ZoneDelegate.invoke (zone.js:392) at Object.onInvoke (core.js:4629) at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:142) at NgZone.run (core.js:4446) defaultErrorLogger @ core.js:1350 ErrorHandler.handleError @ core.js:1411 (anonymous) @ core.js:5569 ZoneDelegate.invoke @ zone.js:392 Zone.run @ zone.js:142 NgZone.runOutsideAngular @ core.js:4577 _callAndReportToErrorHandler @ core.js:5569 (anonymous) @ core.js:5377 ZoneDelegate.invoke @ zone.js:392 onInvoke @ core.js:4629 ZoneDelegate.invoke @ zone.js:391 Zone.run @ zone.js:142 NgZone.run @ core.js:4446 PlatformRef.bootstrapModuleFactory @ core.js:5368 (anonymous) @ core.js:5447 ZoneDelegate.invoke @ zone.js:392 Zone.run @ zone.js:142 (anonymous) @ zone.js:844 ZoneDelegate.invokeTask @ zone.js:425 Zone.runTask @ zone.js:192 drainMicroTaskQueue @ zone.js:602 Promise resolved (async) scheduleMicroTask @ zone.js:585 ZoneDelegate.scheduleTask @ zone.js:414 Zone.scheduleTask @ zone.js:236 Zone.scheduleMicroTask @ zone.js:256 scheduleResolveOrReject @ zone.js:842 ZoneAwarePromise.then @ zone.js:932 setDriver @ localforage.js:2360 LocalForage @ localforage.js:2173 4.3 @ localforage.js:2422 s @ localforage.js:7 e @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:2428 ../../../../localforage/dist/localforage.js @ vendor.bundle.js:2051 webpack_require @ inline.bundle.js:55 (anonymous) @ local-storage.service.ts:3 ../../../../../src/shared/utils/local-storage.service.ts @ main.bundle.js:728 webpack_require @ inline.bundle.js:55 (anonymous) @ utils.module.ts:10 ../../../../../src/shared/utils/utils.module.ts @ main.bundle.js:752 webpack_require @ inline.bundle.js:55 (anonymous) @ app.module.ts:22 ../../../../../src/app/app.module.ts @ main.bundle.js:60 webpack_require @ inline.bundle.js:55 (anonymous) @ root.module.ts:11 ../../../../../src/root.module.ts @ main.bundle.js:536 webpack_require @ inline.bundle.js:55 (anonymous) @ main.ts:6 ../../../../../src/main.ts @ main.bundle.js:504 webpack_require @ inline.bundle.js:55 0 @ main.bundle.js:805 webpack_require @ inline.bundle.js:55 webpackJsonpCallback @ inline.bundle.js:26 (anonymous) @ main.bundle.js:1 zone.js:661 Unhandled Promise rejection: abp is not defined ; Zone: <root> ; Task: Promise.then ; Value: ReferenceError: abp is not defined at Array.eval (root.module.ts:28) at ApplicationInitStatus.runInitializers (core.js:3451) at eval (core.js:5379) at _callAndReportToErrorHandler (core.js:5558) at eval (core.js:5377) at ZoneDelegate.invoke (zone.js:392) at Object.onInvoke (core.js:4629) at ZoneDelegate.invoke (zone.js:391) at Zone.run (zone.js:142) at NgZone.run (core.js:4446) ReferenceError: abp is not defined at Array.eval (webpack-internal:///../../../../../src/root.module.ts:51:9) at ApplicationInitStatus.runInitializers (webpack-internal:///../../../core/esm5/core.js:3647:67) at eval (webpack-internal:///../../../core/esm5/core.js:5575:28) at _callAndReportToErrorHandler (webpack-internal:///../../../core/esm5/core.js:5754:39) at eval (webpack-internal:///../../../core/esm5/core.js:5573:20) at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:392:26) at Object.onInvoke (webpack-internal:///../../../core/esm5/core.js:4825:33) at ZoneDelegate.invoke (webpack-internal:///../../../../zone.js/dist/zone.js:391:32) at Zone.run (webpack-internal:///../../../../zone.js/dist/zone.js:142:43) at NgZone.run (webpack-internal:///../../../core/esm5/core.js:4642:69) api.onUnhandledError @ zone.js:661 handleUnhandledRejection @ zone.js:688 _loop_1 @ zone.js:678 api.microtaskDrainDone @ zone.js:682 drainMicroTaskQueue @ zone.js:610 Promise resolved (async) scheduleMicroTask @ zone.js:585 ZoneDelegate.scheduleTask @ zone.js:414 Zone.scheduleTask @ zone.js:236 Zone.scheduleMicroTask @ zone.js:256 scheduleResolveOrReject @ zone.js:842 ZoneAwarePromise.then @ zone.js:932 setDriver @ localforage.js:2360 LocalForage @ localforage.js:2173 4.3 @ localforage.js:2422 s @ localforage.js:7 e @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:7 (anonymous) @ localforage.js:2428 ../../../../localforage/dist/localforage.js @ vendor.bundle.js:2051 webpack_require @ inline.bundle.js:55 (anonymous) @ local-storage.service.ts:3 ../../../../../src/shared/utils/local-storage.service.ts @ main.bundle.js:728 webpack_require @ inline.bundle.js:55 (anonymous) @ utils.module.ts:10 ../../../../../src/shared/utils/utils.module.ts @ main.bundle.js:752 webpack_require @ inline.bundle.js:55 (anonymous) @ app.module.ts:22 ../../../../../src/app/app.module.ts @ main.bundle.js:60 webpack_require @ inline.bundle.js:55 (anonymous) @ root.module.ts:11 ../../../../../src/root.module.ts @ main.bundle.js:536 webpack_require @ inline.bundle.js:55 (anonymous) @ main.ts:6 ../../../../../src/main.ts @ main.bundle.js:504 webpack_require @ inline.bundle.js:55 0 @ main.bundle.js:805 webpack_require @ inline.bundle.js:55 webpackJsonpCallback @ inline.bundle.js:26 (anonymous) @ main.bundle.js:1

  • 0
    aaron created
    Support Team

    Check if you included these lines in your page:

    <script src="~/Abp/Framework/scripts/libs/angularjs/abp.ng.js"></script>
    <script src="~/api/AbpServiceProxies/GetAll?type=angular"></script>
    
    <script src="~/Abp/Framework/scripts/abp.js"></script>
    

    Maybe related: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/444

  • 0
    manojreddy created

    I cleared cache and the above error is gone now.

    But When I run the application I get the below error now.

    API <a class="postlink" href="http://localhost:22742/api/TokenAuth/GetExternalAuthenticationProviders">http://localhost:22742/api/TokenAuth/Ge ... nProviders</a> is giving the following error.

    Status Code:500 Internal Server Error An internal error occurred during your request!

  • 0
    manojreddy created

    Getting 500 Internal Server Error on <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> once I try to login to the application as well. It's not even hitting the breakpoint.

  • 0
    aaron created
    Support Team

    Can you show the error in Logs.txt?

  • 0
    manojreddy created

    Please find content of Logs.txt.

    Please let me know If you need more logs

    NFO 2017-12-14 05:56:10,958 [18 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 05:56:10,974 [18 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.GetExternalAuthenticationProviders (Nec.Stanchion.Web.Core) in 6.5571ms INFO 2017-12-14 05:56:11,022 [18 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 50.8022ms 500 application/json; charset=utf-8 INFO 2017-12-14 05:57:25,853 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a>
    INFO 2017-12-14 05:57:25,873 [19 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:57:26,077 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 177.6738ms 204 INFO 2017-12-14 05:57:26,170 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> application/json 151 INFO 2017-12-14 05:57:26,260 [19 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:57:26,440 [19 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. ERROR 2017-12-14 05:57:26,479 [19 ] 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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    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 05:57:26,609 [19 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 05:57:26,852 [19 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.Authenticate (Nec.Stanchion.Web.Core) in 300.843ms INFO 2017-12-14 05:57:27,759 [19 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 779.2618ms 500 application/json; charset=utf-8 INFO 2017-12-14 05:57:34,468 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a>
      INFO 2017-12-14 05:57:34,469 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:57:34,499 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 6.5355ms 204 INFO 2017-12-14 05:57:34,508 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> application/json 157 INFO 2017-12-14 05:57:34,510 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:57:34,521 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. ERROR 2017-12-14 05:57:34,524 [23 ] 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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    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 05:57:34,531 [23 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 05:57:34,538 [23 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.Authenticate (Nec.Stanchion.Web.Core) in 12.2805ms INFO 2017-12-14 05:57:34,551 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 34.4357ms 500 application/json; charset=utf-8 INFO 2017-12-14 05:57:59,179 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a>
      INFO 2017-12-14 05:57:59,240 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:57:59,367 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 101.1996ms 204 INFO 2017-12-14 05:57:59,880 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> application/json 153 INFO 2017-12-14 05:58:00,133 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:58:00,428 [21 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. ERROR 2017-12-14 05:58:00,598 [21 ] 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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    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 05:58:00,815 [21 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 05:58:01,268 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.Authenticate (Nec.Stanchion.Web.Core) in 673.385ms INFO 2017-12-14 05:58:01,934 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1679.6478ms 500 application/json; charset=utf-8 INFO 2017-12-14 05:58:08,070 [20 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 OPTIONS <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a>
      INFO 2017-12-14 05:58:08,084 [20 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:58:08,115 [20 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 35.839ms 204 INFO 2017-12-14 05:58:08,124 [20 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> application/json 151 INFO 2017-12-14 05:58:08,128 [20 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:58:08,141 [20 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. ERROR 2017-12-14 05:58:08,142 [20 ] 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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    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 05:58:08,152 [20 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 05:58:08,159 [20 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.Authenticate (Nec.Stanchion.Web.Core) in 18.4881ms INFO 2017-12-14 05:58:08,187 [20 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 62.2347ms 500 application/json; charset=utf-8 INFO 2017-12-14 05:59:45,666 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 POST <a class="postlink" href="http://localhost:22742/api/TokenAuth/Authenticate">http://localhost:22742/api/TokenAuth/Authenticate</a> application/json-patch+json 224 INFO 2017-12-14 05:59:45,669 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 05:59:45,682 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. ERROR 2017-12-14 05:59:45,683 [23 ] 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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    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 05:59:45,691 [23 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 05:59:45,694 [23 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Web.Controllers.TokenAuthController.Authenticate (Nec.Stanchion.Web.Core) in 12.9459ms INFO 2017-12-14 05:59:45,711 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 29.9999ms 500 application/json; charset=utf-8 INFO 2017-12-14 06:05:01,610 [23 ] 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> 0 INFO 2017-12-14 06:05:01,850 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 06:05:02,229 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1210.3269ms 204 INFO 2017-12-14 06:05:02,935 [23 ] 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:05:03,385 [23 ] pNetCore.Cors.Infrastructure.CorsService - Policy execution successful. INFO 2017-12-14 06:05:03,544 [23 ] uthentication.JwtBearer.JwtBearerHandler - Bearer was not authenticated. Failure message: No SecurityTokenValidator available for token: null ERROR 2017-12-14 06:05:04,793 [23 ] Microsoft.AspNetCore.Server.Kestrel - Connection id "0HLA2MP1MSU28", Request id "0HLA2MP1MSU28: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.OptionsMonitor1.<>c__DisplayClass10_0.<Get>b__0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at Microsoft.Extensions.Options.OptionsCache1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsMonitor1.Get(String name) at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.&lt;InitializeAsync&gt;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.&lt;GetHandlerAsync&gt;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.&lt;GetHandlerAsync&gt;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.TaskAwaiter1.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.TaskAwaiter1.GetResult() at Microsoft.AspNetCore.Authentication.AuthenticationService.&lt;AuthenticateAsync&gt;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.&lt;&gt;c__DisplayClass0_0.&lt;&lt;UseJwtTokenMiddleware&gt;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.&lt;&gt;c__DisplayClass0_0.&lt;&lt;UseJwtTokenMiddleware&gt;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.&lt;Invoke&gt;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.&lt;Invoke&gt;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.&lt;Invoke&gt;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.&lt;Invoke&gt;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.Frame1.<ProcessRequestsAsync>d__2.MoveNext() INFO 2017-12-14 06:05:04,949 [23 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2128.4181ms 500

  • 0
    manojreddy created

    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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    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

  • 0
    aaron created
    Support Team

    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:

    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthConfiguration' which was not registered.
    • Service 'Abp.AspNetZeroCore.Web.Authentication.External.IExternalAuthManager' which was not registered.

    Add this in TokenAuthController:

    using Abp.AspNetZeroCore.Web.Authentication.External;
    
  • 0
    manojreddy created

    But using Abp.AspNetZeroCore.Web.Authentication.External; it already there in the file TokenAuthController.

  • 0
    manojreddy created

    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()

  • 0
    aaron created
    Support Team

    Can you check if your:

    • CoreModule depends on AbpAspNetZeroCoreModule, and
    • WebCoreModule depends on AbpAspNetZeroCoreWebModule?
  • 0
    manojreddy created

    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:info@aspnetzero.com">info@aspnetzero.com</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()

  • 0
    aaron created
    Support Team

    Great. That's resolved here: #4275@c6b912df-2a2b-49be-bd05-a651d60a8e79

    You can download a new project using your existing project name as @aaron suggested. Then you can take the newly generated license code in downloded project's appsettings.json and use it in your existing application.

  • 0
    manojreddy created

    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)

  • 0
    manojreddy created

    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.IAsyncEnumerable1[System.Decimal] DefaultIfEmpty[Decimal](System.Collections.Generic.IAsyncEnumerable1[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.IAsyncEnumerable1[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](ReadOnlyCollection1 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.&lt;&gt;c__DisplayClass24_01.<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, Func1 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&lt;TResult&gt;.GetEnumerator() at System.Linq.AsyncEnumerable.&lt;Aggregate_&gt;d__63.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.&lt;GetDailyIncomeStatisticsData&gt;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.TaskAwaiter1.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.<GetDashboardStatisticsData>d__8.MoveNext() in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Application\MultiTenancy\HostDashboard\HostDashboardAppService.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()

  • 0
    aaron created
    Support Team

    Show the code for IncomeStatisticsService.GetDailyIncomeStatisticsData method.

  • 0
    manojreddy created
    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);
                }
            }
    
  • 0
    aaron created
    Support Team

    The error says that you can't do this: Amount = s.DefaultIfEmpty(new SubscriptionPayment()).Sum(c => c.Amount)

    Since you're already doing Date = s.First().CreationTime.Date, change that line to:

    Amount = s.Sum(c => c.Amount)
    
  • 0
    manojreddy created

    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.

  • 0
    manojreddy created

    Also, this looks very bad UI. There is no error in browser console, I cannot debug also.

  • 0
    aaron created
    Support Team
    1. Go to <a class="postlink" href="http://localhost:4200/app/admin/ui-customization">http://localhost:4200/app/admin/ui-customization</a>.
    2. Select the Menu tab.
    3. Pick a Menu skin.
  • 0
    manojreddy created

    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.<GetUiManagementSettings>d__2.MoveNext() in C:\Users\viveknuna\source\repos\Stanchion\aspnet-core\src\Nec.Stanchion.Application\Configuration\UiCustomizationSettingsAppService.cs:line 23 --- 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 11:42:59,936 [28 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:42:59,945 [21 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Sessions.SessionAppService.GetCurrentLoginInformations (Nec.Stanchion.Application) in 968.4343ms INFO 2017-12-14 11:42:59,950 [21 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 3184.6729ms 200 application/json; charset=utf-8 INFO 2017-12-14 11:42:59,996 [28 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Authorization.Users.UserLinkAppService.GetRecentlyUsedLinkedUsers (Nec.Stanchion.Application) in 1286.1797ms INFO 2017-12-14 11:43:00,056 [28 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2048.7864ms 200 application/json; charset=utf-8 INFO 2017-12-14 11:43:00,065 [26 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:43:00,090 [26 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Configuration.UiCustomizationSettingsAppService.GetUiManagementSettings (Nec.Stanchion.Application) in 1487.2538ms INFO 2017-12-14 11:43:00,224 [26 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2139.9772ms 500 application/json; charset=utf-8 INFO 2017-12-14 11:43:00,270 [29 ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. INFO 2017-12-14 11:43:00,292 [29 ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Nec.Stanchion.Authorization.Users.UserLinkAppService.GetLinkedUsers (Nec.Stanchion.Application) in 1622.1364ms INFO 2017-12-14 11:43:00,356 [29 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 2347.1766ms 200 application/json; charset=utf-8

  • 0
    aaron created
    Support Team

    Add these SettingDefinitions in AppSettingProvider.

  • 0
    manojreddy created

    Awesome, Thanks a lot :)

  • 0
    manojreddy created

    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.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value) at System.Linq.Enumerable.ToDictionary[TSource,TKey](List1 source, Func2 keySelector, IEqualityComparer1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable1 source, Func2 keySelector, IEqualityComparer1 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.&lt;&gt;c__DisplayClass5_02.<<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.&lt;GetLanguageDictionary&gt;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.&lt;GetLanguagesAsync&gt;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](Task1 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](Task1 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, Action1 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

  • 0
    aaron created
    Support Team

    Can you check if there are entries with the same Name for TenantId = 1 in your dbo.AbpLanguages table?

  • 0
    manojreddy created

    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.

  • 0
    aaron created
    Support Team

    I have not encountered that. But you can safely remove those entries from your database.

  • 0
    manojreddy created

    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.TaskAwaiter1.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

  • 0
    aaron created
    Support Team

    Try clearing your browser cache.

  • 0
    manojreddy created

    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.OptionsMonitor1.<>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.Lazy1.CreateValue() at Microsoft.Extensions.Options.OptionsCache1.GetOrAdd(String name, Func1 createOptions) at Microsoft.Extensions.Options.OptionsMonitor1.Get(String name) at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.<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.&lt;AuthenticateAsync&gt;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.&lt;HandleAuthenticateAsync&gt;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.TaskAwaiter1.GetResult() at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.&lt;AuthenticateAsync&gt;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.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 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.<ProcessRequestsAsync>d__2.MoveNext() INFO 2017-12-14 18:19:11,025 [14 ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 80.7286ms 500

  • 0
    aaron created
    Support Team

    As mentioned, try clearing your browser cache (and cookies).

  • 0
    manojreddy created

    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?

  • 0
    manojreddy created

    @aaron Please help buddy

  • 0
    aaron created
    Support Team

    Which ABP version and ASP.NET Zero version is this?

  • 0
    manojreddy created

    I have downloaded this project.

  • 0
    ismcagdas created
    Support Team

    Hi @ManojReddy,

    Can you check if below lines exist in your project ?

    <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Startup/AuthConfigurer.cs#L23">https://github.com/aspnetzero/aspnet-ze ... rer.cs#L23</a> <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Startup/Startup.cs#L79">https://github.com/aspnetzero/aspnet-ze ... tup.cs#L79</a>

  • 0
    manojreddy created

    I have completely different AuthConfigurer.cs file which I'm using in my project.

    using System;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Abp.Runtime.Security;
    using Microsoft.AspNetCore.Authentication.JwtBearer;
    using Microsoft.AspNetCore.Builder;
    using Microsoft.Extensions.Configuration;
    using Microsoft.Extensions.DependencyInjection;
    using Microsoft.IdentityModel.Tokens;
    
    namespace Nec.Stanchion.Web.Startup
    {
        public static class AuthConfigurer
        {
            public static void Configure(IServiceCollection services, IConfiguration configuration)
            {
                var authenticationBuilder = services.AddAuthentication();
    
                if (bool.Parse(configuration["Authentication:JwtBearer:IsEnabled"]))
                {
                    authenticationBuilder.AddJwtBearer(options =>
                    {
                        options.TokenValidationParameters = new TokenValidationParameters
                        {
                            // The signing key must match!
                            ValidateIssuerSigningKey = true,
                            IssuerSigningKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(configuration["Authentication:JwtBearer:SecurityKey"])),
    
                            // Validate the JWT Issuer (iss) claim
                            ValidateIssuer = true,
                            ValidIssuer = configuration["Authentication:JwtBearer:Issuer"],
    
                            // Validate the JWT Audience (aud) claim
                            ValidateAudience = true,
                            ValidAudience = configuration["Authentication:JwtBearer:Audience"],
    
                            // Validate the token expiry
                            ValidateLifetime = true,
    
                            // If you want to allow a certain amount of clock drift, set that here
                            ClockSkew = TimeSpan.Zero
                        };
    
                        options.Events = new JwtBearerEvents
                        {
                            OnMessageReceived = QueryStringTokenResolver
                        };
                    });
                }
    
                if (bool.Parse(configuration["IdentityServer:IsEnabled"]))
                {
                    authenticationBuilder.AddIdentityServerAuthentication("IdentityBearer", options =>
                    {
                        options.Authority = configuration["App:ServerRootAddress"];
                        options.RequireHttpsMetadata = false;
                    });
                }
            }
    
            /* This method is needed to authorize SignalR javascript client.
             * SignalR can not send authorization header. So, we are getting it from query string as an encrypted text. */
            private static Task QueryStringTokenResolver(MessageReceivedContext context)
            {
                if (!context.HttpContext.Request.Path.HasValue ||
                    !context.HttpContext.Request.Path.Value.StartsWith("/signalr"))
                {
                    //We are just looking for signalr clients
                    return Task.CompletedTask;
                }
    
                var qsAuthToken = context.HttpContext.Request.Query["enc_auth_token"].FirstOrDefault();
                if (qsAuthToken == null)
                {
                    //Cookie value does not matches to querystring value
                    return Task.CompletedTask;
                }
    
                //Set auth token from cookie
                context.Token = SimpleStringCipher.Instance.Decrypt(qsAuthToken, AppConsts.DefaultPassPhrase);
                return Task.CompletedTask;
            }
        }
    }
    
  • 0
    manojreddy created

    <cite>aaron: </cite> Which ABP version and ASP.NET Zero version is this?

    How to check ABP version and ASP.NET Zero version?

    Because I'm not sure about the project version.

  • 0
    manojreddy created

    @aaron

    Please help buddy

  • 0
    aaron created
    Support Team
  • 0
    manojreddy created

    @aaron

    ABP version : 3.2.5

    I have checked, I have v5.0.4 version.

    Thanks

  • 0
    manojreddy created

    @aaron any updates?

  • 0
    manojreddy created

    Solved issue buddy.

    Thanks

  • 0
    manojreddy created

    But APIs are getting random required fields which I have not even mentioned in DTO. due to this most of the APIs call are getting failed.

    Thanks

  • 0
    aaron created
    Support Team
    1. Please post how you resolved the previous issue as an answer to your Stack Overflow question.
    2. Can you show the code for your entity and DTO?
  • 0
    manojreddy created

    DTO:

    using Abp.Runtime.Validation;
    using MyCompany.MyProject.Dto;
    
    namespace MyCompany.MyProject.Business.Dto.Tests
    {
        public class FetchTestInput: PagedAndSortedInputDto, IShouldNormalize
        {
            public int TestLevel { get; set; }
            public int CodeType { get; set; }
            public string TestCode { get; set; }
            public string DescLong { get; set; }
            public string LanguageCode { get; set; }
            public string TestParent { get; set; }
    
            public int? TestCondID { get; set; }
            public int? TestResultId { get; set; }
    
            public void Normalize()
            {
                if (string.IsNullOrEmpty(Sorting))
                {
                    Sorting = "TestCode";
                }
            }
    
        }
    }
    

    API method:

    public PagedResultDto<FetchTest> GetSearchTest(FetchTestInput searchInput)
            {
                return _TestRepository.GetSearchTest(searchInput);
            }
    

    Entity:

    using Abp.Domain.Entities.Auditing;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    
    namespace MyCompany.MyProject.Business.Model.Tests
    {
        [Table("Test")]
        public class Test : FullAuditedEntity
        {
            public const int NVarcharLength3 = 3;
            public const int NVarcharLength40 = 40;
            public const int NVarcharLength250 = 250;
    
            [Required]
            [MaxLength(NVarcharLength250)]
            public string TestCode { get; set; }
    
            [Required]
            public int TestLevel { get; set; } = 0;
    
            [MaxLength(NVarcharLength250)]
            public string TestParent { get; set; }
    
            [Required]
            public int CodeType { get; set; } = 0;
    
            [MaxLength(NVarcharLength3)]
            public string CurrencyCode { get; set; }
    
            [Required]
            [MaxLength(NVarcharLength40)]
            public string DescLong { get; set; }
    
            [Required]
            [MaxLength(NVarcharLength40)]
            public string DescShort { get; set; }
    
            [Required]
            public bool FlgAllow1 { get; set; } = true;
    
            [Required]
            public bool FlgAllow2 { get; set; } = false;
    
            [Required]
            public bool FlgAllow3 { get; set; } = false;
    
            [Required]
            public bool FlgAllow4 { get; set; } = true;
    
            [Required]
            public bool FlgAllow5 { get; set; } = true;
    
            [Required]
            public bool FlgFood6 { get; set; } = true;
    
            [Required]
            public bool Flg7 { get; set; } = true;
    
            [Required]
            public bool Flg8 { get; set; } = false;
    
            [Required]
            public decimal MaxPrice { get; set; } = 0;
    
            [Required]
            public int TestMemberId { get; set; } = 0;
    
            [Required]
            public decimal MinPrice { get; set; } = 0;
    
            public int? TestDiscountId { get; set; }
    
            public int? TestDataCode { get; set; }
        }
    }
    

    Please find the attached screenshot for your reference.

  • 0
    aaron created
    Support Team

    Can you find where ClassificationLevel and CodeType appears in your project?

  • 0
    manojreddy created

    ClassificationLevel and CodeType are TestLevel ans TestCode. I just replaced Classification by Test to show you code.

  • 0
    aaron created
    Support Team

    Try setting a default value explicitly:

    public class FetchTestInput: PagedAndSortedInputDto, IShouldNormalize
    {
        public int TestLevel { get; set; } = 0;
        public int CodeType { get; set; } = 0;
        // ...
    }
    
  • 0
    manojreddy created

    I have to explicitly pass the value for TestLevel and CodeType as 0 from UI now. But this functionality was working fine before the upgrade to core 2.0 (I was not passing default value for any parameter). So I have to make this change in all UI pages according to APIs. But I think this is not the way. Can I do something without making so many changes in throughout my application?

    Why have these fields become Required now? Even in Swagger UI, it was not required before for fields.

    Can I disable this feature?

  • 0
    aaron created
    Support Team

    Did you try what I suggested?

  • 0
    manojreddy created

    Yes, I tried but it’s not working. I have to explicitly set TestLevel and CodeType to 0 also from UI.

  • 0
    manojreddy created

    UI has also become distorted for my existing components which I had developed on previous framework.

  • 0
    ismcagdas created
    Support Team

    Hi @ManojReddy,

    This change might be done by ASP.NET. When you upgrade ABP, you also upgrade ASP.NET versions.

    Also, your UI changes might be related to client side libraries.

    By the way, which template you are using ? (ASP.NET Core & jQuery or ASP.NET Core & Angular).

  • 0
    manojreddy created

    Thanks for your reply.

    I'm using ASP.NET Core & Angular.

  • 0
    ismcagdas created
    Support Team

    So, were you using AngularJs and trytign to move to Angular ? If so, your previous components will not work, you need to align them with angular 5.

    For your other problem, can you show us a use case ? You can share your app service input class and content of your ajax request will be great.

  • 0
    manojreddy created

    <cite>ManojReddy: </cite> I have to explicitly pass the value for TestLevel and CodeType as 0 from UI now. But this functionality was working fine before the upgrade to core 2.0 (I was not passing default value for any parameter). So I have to make this change in all UI pages according to APIs. But I think this is not the way. Can I do something without making so many changes in throughout my application?

    Why have these fields become Required now? Even in Swagger UI, it was not required before for fields.

    Can I disable this feature?

    Could you please reply on this.

  • 0
    ismcagdas created
    Support Team

    Hi @ManojReddy,

    If I understand correctly, you are upgrading from ASP.NET MVC 5.x to ASP.NET Core, so this is the expected behaviour.

  • 0
    manojreddy created

    Thanks a lot dear :)