Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Build error on upgrading to core 2.0 #4319


User avatar
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)
  • User Avatar
    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

  • User Avatar
    0
    manojreddy created

    Sorry, But it's not helpful.

  • User Avatar
    0
    aaron created
    Support Team

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

  • User Avatar
    0
    manojreddy created

    Getting error on the lines in file AbpZeroTemplateWebFrontEndModule, why?

    using Abp.AspNetZeroCore;

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

  • User Avatar
    0
    aaron created
    Support Team

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

  • User Avatar
    0
    manojreddy created

    Whats difference between Application and Application.Shared project?

  • User Avatar
    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>

  • User Avatar
    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
    
  • User Avatar
    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)
            {
            }
    
  • User Avatar
    0
    aaron created
    Support Team

    WebUrlServiceBase no longer has ITenantCache in its constructor.

  • User Avatar
    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'?

  • User Avatar
    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

  • User Avatar
    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

  • User Avatar
    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!

  • User Avatar
    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.

  • User Avatar
    0
    aaron created
    Support Team

    Can you show the error in Logs.txt?

  • User Avatar
    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.<InitializeAsync>d__42.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Authentication.AuthenticationHandlerProvider.<GetHandlerAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.Hosting.FederatedSignOut.FederatedSignoutAuthenticationHandlerProvider.<GetHandlerAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.AspNetCore.Authentication.AuthenticationService.<AuthenticateAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at IdentityServer4.AccessTokenValidation.IdentityServerAuthenticationHandler.<HandleAuthenticateAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.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.<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.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

  • User Avatar
    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

  • User Avatar
    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;
    
  • User Avatar
    0
    manojreddy created

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

  • User Avatar
    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()

  • User Avatar
    0
    aaron created
    Support Team

    Can you check if your:

    • CoreModule depends on AbpAspNetZeroCoreModule, and
    • WebCoreModule depends on AbpAspNetZeroCoreWebModule?
  • User Avatar
    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:[email protected]">[email protected]</a> if you are using a licensed product. Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.pdxo9JJAGSNSUSdR5x(Object ) at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.GetHashedProjectName() at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.IsProjectNameValid() at Abp.AspNetZeroCore.Licensing.AspNetZeroLicenseChecker.<CheckInternal>d__9.MoveNext()

  • User Avatar
    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.

  • User Avatar
    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)