Open Closed

Error when create Console Application in Abp Commercial #4283


User avatar
0
thuc.nghiem@techplus.vn created
  • ABP Framework version: v6.0.2

  • UI type: Angular

  • DB provider: EF Core

  • Tiered (MVC) or Identity Server Separated (Angular): yes

  • Exception message and stack trace:

  • cs1.png

  • Steps to reproduce the issue:"

    1. Create the Console Application follow link https://docs.abp.io/en/abp/latest/Startup-Templates/Console

    1. Add project to abp solution

    1. Add reference to Tp.Tam.EntityFrameworkCore

    1. Add ConnectionStrings to appsettings.json

    1. Copy appsettings.secrets.json to my Console

    1. Add DependsOn "typeof(TamEntityFrameworkCoreModule)" in WindowsServiceModule

    1. add Repository or settingProvider into HelloWorldService

    1. run Console error:

  • [11:52:45 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
    [11:52:45 INF] - Volo.Abp.Caching.AbpCachingModule
    [11:52:45 INF] - Volo.Abp.Serialization.AbpSerializationModule
    [11:52:45 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsDomainModule
    [11:52:45 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsModule
    [11:52:45 INF] - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule
    [11:52:45 INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule
    [11:52:45 INF] - Volo.Abp.FeatureManagement.AbpFeatureManagementDomainModule
    [11:52:45 INF] - Volo.Abp.Identity.AbpIdentityProDomainModule
    [11:52:45 INF] - Volo.Abp.Identity.AbpIdentityDomainModule
    [11:52:45 INF] - Volo.Abp.Users.AbpUsersDomainModule
    [11:52:45 INF] - Volo.Abp.Users.AbpUsersAbstractionModule
    [11:52:45 INF] - Volo.Abp.Ldap.AbpLdapModule
    [11:52:45 INF] - Volo.Abp.Gdpr.AbpGdprAbstractionsModule
    [11:52:45 INF] - Volo.Abp.PermissionManagement.Identity.AbpPermissionManagementDomainIdentityModule
    [11:52:45 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
    [11:52:45 INF] - Volo.Abp.Authorization.AbpAuthorizationModule
    [11:52:45 INF] - Volo.Abp.OpenIddict.AbpOpenIddictDomainModule
    [11:52:45 INF] - Volo.Abp.PermissionManagement.OpenIddict.AbpPermissionManagementDomainOpenIddictModule
    [11:52:45 INFfail: Volo.Abp.Identity.AbpIdentityProDomainModule[0]
    ABP-LIC-0020 - License code not found! Ensure that your appsettings.json or appsettings.secrets.json has "AbpLicenseCode" key with your license code.
    ] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
    [11:52:45 fail: Volo.Saas.SaasDomainModule[0]
    ABP-LIC-ERROR - License check failed for 'Volo.Saas.Domain-v6.0.2.0'.

    For more information, contact to license@abp.io.
    

INF] - Volo.Saas.SaasDomainModule
[11:52:45 INF] - Volo.Abp.TextTemplateManagement.TextTemplateManagementDomainModule
[11:52:45 INF] - Volo.Abp.TextTemplating.AbpTextTemplatingModule
[11:52:45 INF] - Volo.Abp.TextTemplating.Scriban.AbpTextTemplatingScribanModule
[11:52:45 INF] - Volo.Abp.TextTemplating.AbpTextTemplatingCoreModule
[11:52:45 INF] - Volo.Abp.LanguageManagement.LanguageManagementDomainModule
[11:52:45 INF] - Volo.Abp.Commercial.SuiteTemplates.VoloAbpCommercialSuiteTemplatesModule
[11:52:45 INF] - Volo.Abp.Emailing.AbpEmailingModule
[11:52:45 INF] - Volo.Abp.Gdpr.AbpGdprDomainModule
[11:52:45 INF]
D:\TechPlus\Pln\Code\Tp.Tam\aspnet-core\src\Tp.Tam.WindowsService\src\Tp.Tam.WindowsService\bin\Debug\net6.0\Tp.Tam.WindowsService.exe (process 4240) exited with code -42.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .


7 Answer(s)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 18, 2025, 10:42