Open Closed

Bugs & Issues v4.2.X #807


0
alper created
Support Team

To update your version to the latest (v4.2) for both ABP CLI and ABP Suite run the following command

dotnet tool update -g Volo.Abp.Cli && abp suite update

v4.2 Preview Version Notes https://blog.abp.io/abp/ABP-IO-Platform-v4-2-RC-Has-Been-Released

v4.2 Final Version Notes https://blog.abp.io/abp/ABP.IO-Platform-4-2-Final-Has-Been-Released


93 Answer(s)
  • 0
    gvnuysal created

    Hi @alper,

    1. I create a property as in picture 1. I fill in the max and min fields. After registering, I update again and delete the max min fields. After click save button,ı get an error.

    2. How to create an entity with navigation property only?

    {
    b.ToTable(ArgeConsts.DbTablePrefix + "Notes", ArgeConsts.DbSchema);
    b.ConfigureByConvention();
    b.Property(x => x.Title).HasColumnName(nameof(Note.Title));
    
                b.HasOne<AppUser>().WithMany().HasForeignKey(x => x.AppUserId).IsRequired();
            });
    

    The navigation property that we created with suite does not create foreign keys in sql tables. We make the above arrangement to create a foreign key. Then we get the following error, while migrating.

    b.HasOne <AppUser> () .WithMany (). HasForeignKey (x => x.AppUserId) .IsRequired (); If we create a migraiton without writing above the code, there is no problem.

  • 0
    yekalkan created
    Support Team

    Hi @gvnuysal,

    First issue (editing min-max length fields) will be fixed in stable 4.2.0 version. Thanks you for reporting.

    How to create an entity with navigation property only?

    At least one basic property is required to generate CRUD page.

  • 0
    gvnuysal created

    Hi,

    Min value and Max value are decimal fields in db.(we created with abp-suite)

    decimal field accepts number e. But the phrase required field does not go away.

  • 0
    murat.yuceer created

    Hello, I created project with microservice template This is my startup settings

    But when i open blazor (admin) site, i couldnt see sas, language etc.. menu just identity..

  • 0
    edelivery created
    • ABP Framework version: v4.2.0
    • UI type: Angular
    • DB provider: EF Core
    • Tiered (MVC) or Identity Server Seperated (Angular): yes
    • Exception message and stack trace:
    • Steps to reproduce the issue: When I set menu placement to top. My navigationbar is not show child element when click but when i set menu placement to left it's work fine
  • 0
    alper created
    Support Team

    @gvnuysal can you write your project type for the decimal value issue ?

  • 0
    alper created
    Support Team

    @murat.yuceer, in Microservice template, you must grant permission manually to the admin role.

  • 0
    alper created
    Support Team

    @edelivery top menu isse has been reproduced and just fixed. next week there's a plan for patch release v4.2.1. this and other reported issues will be fixed in that version.

  • 0
    scott7106 created

    I am not sure whether to report this under 4.2 or 4.1. I just generated a new project using Suite. My ABP CLI and Suite are version 4.1.2. After creating a new tiered MVC project, I am getting a bunch of errors about missing Volo.CmsKit.Pro* packages.

    Severity Code Description Project File Line Suppression State Error NU1101 Unable to find package Volo.CmsKit.Pro.HttpApi. No packages exist with this id in source(s): ABP Commercial NuGet Source, BlazoriseMyGet, Microsoft Visual Studio Offline Packages, nuget.org, OtisEd NuGet Source IronGlass.HttpApi C:\AppDev\IronGlass\IronGlass\aspnet-core\src\IronGlass.HttpApi\IronGlass.HttpApi.csproj 1

    Here is an excerpt from the *.Domain csproj file. <ItemGroup> <PackageReference Include="Volo.Abp.Emailing" Version="4.2.0" /> <PackageReference Include="Volo.Abp.Identity.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.PermissionManagement.Domain.Identity" Version="4.2.0" /> <PackageReference Include="Volo.Abp.IdentityServer.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.PermissionManagement.Domain.IdentityServer" Version="4.2.0" /> <PackageReference Include="Volo.Abp.BackgroundJobs.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.AuditLogging.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.FeatureManagement.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.SettingManagement.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.BlobStoring.Database.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.LanguageManagement.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Saas.Domain" Version="4.2.0" /> <PackageReference Include="Volo.Abp.TextTemplateManagement.Domain" Version="4.2.0" /> <!-- <TEMPLATE-REMOVE IF-NOT='CMS-KIT'> --> <PackageReference Include="Volo.CmsKit.Pro.Domain" Version="4.2.0" /> <!-- </TEMPLATE-REMOVE> --> </ItemGroup>

    Beyond the obvious issues. Why does Sutie v4.1 generate a project with 4.2 references?

  • 0
    anthonyh created
    • ABP Framework version: v4.2.0
    • UI type: Blazor
    • DB provider: EF Core
    • Tiered (MVC) or Identity Server Seperated (Angular): no
    • Exception message and stack trace:
    • Steps to reproduce the issue:

    I created an application with Blazor UI using this CLI command without any problem: abp new BlazorMainApp -t app-pro -u blazor -dbms PostgreSQL

    But when I tried to add a module to this main application, using the CLI command: abp add-module BlazorModule --new --add-to-solution-file -t module-pro

    It failed and I got these error messages:

    PS C:\Users\Anthony\source\repos\AbpBlazor> abp add-module BlazorModule --new --add-to-solution-file -t module-pro      [13:54:30 INF] ABP CLI (https://abp.io)
    [13:54:30 INF] Version 4.2.0 (Stable)
    [13:54:32 INF] Installing module 'BlazorModule' to the solution 'BlazorMainApp'
    [13:54:32 INF] Installing 'BlazorModule.Application' package to the project 'BlazorMainApp.Application'...
    [13:54:32 INF] Successfully installed.
    [13:54:32 INF] Installing 'BlazorModule.Application.Contracts' package to the project 'BlazorMainApp.Application.Contracts'...
    [13:54:32 INF] Successfully installed.
    [13:54:32 INF] Installing 'BlazorModule.Blazor' package to the project 'BlazorMainApp.Blazor'...
    Building....:  (1/1)C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj
    Executing...: dotnet build C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj
    Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
    Copyright (C) Microsoft Corporation. All rights reserved.
    
      Determining projects to restore...
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Application.Contracts\BlazorMainApp.Application.Contracts.csproj : error NU1101: Unable to find package BlazorModule.Application.Contracts. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org [C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj]
      Failed to restore C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Application.Contracts\BlazorMainApp.Application.Contracts.csproj (in 2.62 sec).
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.HttpApi.Client\BlazorMainApp.HttpApi.Client.csproj : error NU1101: Unable to find package BlazorModule.Application.Contracts. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org [C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj]
      Failed to restore C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.HttpApi.Client\BlazorMainApp.HttpApi.Client.csproj (in 2.98 sec).
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj : error NU1101: Unable to find package BlazorModule.Blazor. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj : error NU1101: Unable to find package BlazorModule.Application.Contracts. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org
      Failed to restore C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj (in 6.75 sec).
      1 of 4 projects are up-to-date for restore.
    
    Build FAILED.
    
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Application.Contracts\BlazorMainApp.Application.Contracts.csproj : error NU1101: Unable to find package BlazorModule.Application.Contracts. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org [C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj]
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.HttpApi.Client\BlazorMainApp.HttpApi.Client.csproj : error NU1101: Unable to find package BlazorModule.Application.Contracts. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org [C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj]
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj : error NU1101: Unable to find package BlazorModule.Blazor. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org
    C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj : error NU1101: Unable to find package BlazorModule.Application.Contracts. No packages exist with this id in source(s): ABP Commercial NuGet Source, ABP Nightly, BlazoriseMyGet, DevExpress, Microsoft Visual Studio Offline Packages, nuget.org
        0 Warning(s)
        4 Error(s)
    
    Time Elapsed 00:00:07.60
    Build failed for :C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\BlazorMainApp.Blazor.csproj
    System.Exception: Build failed!
       at Volo.Abp.Cli.Build.DefaultDotNetProjectBuilder.BuildInternal(DotNetProjectInfo project, String arguments, ConcurrentBag`1 builtProjects) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Build\DefaultDotNetProjectBuilder.cs:line 85
       at Volo.Abp.Cli.Build.DefaultDotNetProjectBuilder.BuildProjects(List`1 projects, String arguments) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Build\DefaultDotNetProjectBuilder.cs:line 34
    [13:54:40 ERR] Could not load file or assembly 'C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\bin\Debug\net5.0\wwwroot\_framework\BlazorMainApp.Blazor.dll'. The system cannot find the path specified.
    System.IO.FileNotFoundException: Could not load file or assembly 'C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\bin\Debug\net5.0\wwwroot\_framework\BlazorMainApp.Blazor.dll'. The system cannot find the path specified.
    File name: 'C:\Users\Anthony\source\repos\AbpBlazor\src\BlazorMainApp.Blazor\bin\Debug\net5.0\wwwroot\_framework\BlazorMainApp.Blazor.dll'
       at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
       at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
       at System.Reflection.Assembly.LoadFrom(String assemblyFile)
       at Volo.Abp.Cli.Bundling.BundlingService.GetStartupModule(String assemblyPath) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 272
       at Volo.Abp.Cli.Bundling.BundlingService.BundleAsync(String directory, Boolean forceBuild) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Bundling\BundlingService.cs:line 64
       at Volo.Abp.Cli.Commands.BundleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\BundleCommand.cs:line 43
       at Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.RunBundleForBlazorAsync(String projectFile) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\ProjectNugetPackageAdder.cs:line 204
       at Volo.Abp.Cli.ProjectModification.ProjectNugetPackageAdder.AddAsync(String projectFile, NugetPackageInfo package, String version, Boolean useDotnetCliToInstall) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\ProjectNugetPackageAdder.cs:line 106
       at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddNugetAndNpmReferences(ModuleWithMastersInfo module, String[] projectFiles, Boolean useDotnetCliToInstall) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 421
       at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.AddAsync(String solutionFile, String moduleName, String startupProject, String version, Boolean skipDbMigrations, Boolean withSourceCode, Boolean addSourceCodeToSolutionFile, Boolean newTemplate, Boolean newProTemplate) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 95
       at Volo.Abp.Cli.Commands.AddModuleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\AddModuleCommand.cs:line 59
       at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 59
    

    I also tried: abp add-module BlazorModule --new --add-to-solution-file -t module-pro -u blazor and got the same error.

  • 0
    anthonyh created
    • ABP Framework version: v4.2.0
    • UI type: Blazor
    • DB provider: EF Core
    • Tiered (MVC) or Identity Server Seperated (Angular): no
    • Exception message and stack trace:
    • Steps to reproduce the issue:

    Step 1: Create a module using ABP suite. Step 2: Add an entity to the module using ABP suite.

    Problem: ABP suite does not update Blazor UI when adding a new entity. It only updates Angular and MVC.

  • 0
    gvnuysal created

    Hi @alper,

    ABP Framework version: v3.3.1 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): no

    Min value and Max value are decimal fields in db.(we created with abp-suite)

    decimal field accepts number e. But the phrase required field does not go away.

  • 0
    ilitzy created

    Hello @alper,

    I was hoping this bug to be fixed in 4.2 (first saw it in 4.1.2) but it seems to want to stay. My problem is, when I build a Blazor + separate Identity Server project, the basic DateTimePicker is not behaving how it should. Tried both Sql and Mongo and results are as follows:

    SQL: -starts from 01/01/01 and allows you to manually modify only date or month. If you attemp to modify both date and month it turns back to 01/01/0001.The year is untouchable , as it appears you can only modify the last 2 digits of it. -The today button however, works ok, but it is unpleasent to scorll down to the required year starting from 2021 -Saves date exactly

    Mongo: -same problem with DateTimePicker and manual modifications -saves not the chosen date, but the day before that (eg: I pick 05.02.2021 and it saves 04.02.2021)

    Must mention the project and CRUD pages were generated by the abp suite and there were no modifications whatsoever to the page rendering the grid, nor were there any modifications to the AppService Create method.

    Thank you in advance for your response and keep up the good work!

  • 0
    alper created
    Support Team

    I am not sure whether to report this under 4.2 or 4.1. I just generated a new project using Suite. My ABP CLI and Suite are version 4.1.2. After creating a new tiered MVC project, I am getting a bunch of errors about missing Volo.CmsKit.Pro* packages.

    Severity Code Description Project File Line Suppression State Error NU1101 Unable to find package Volo.CmsKit.Pro.HttpApi. No packages exist with this id in source(s): ABP Commercial NuGet Source, BlazoriseMyGet, Microsoft Visual Studio Offline Packages, nuget.org, OtisEd NuGet Source IronGlass.HttpApi C:\AppDev\IronGlass\IronGlass\aspnet-core\src\IronGlass.HttpApi\IronGlass.HttpApi.csproj 1

    @scott7106 v4.1.2 has some issues already reported. can you try to generate a new project now. the stable version of v4.2 has released 4 days ago. before that preview version was online and if you don't specifically add --preview parameter it always creates from the latest stable.

  • 0
    alper created
    Support Team

    ABP Framework version: v4.2.0 UI type: Blazor DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): no Exception message and stack trace: Steps to reproduce the issue: Step 1: Create a module using ABP suite. Step 2: Add an entity to the module using ABP suite.

    Problem: ABP suite does not update Blazor UI when adding a new entity. It only updates Angular and MVC.

    @anthonyh , ABP Suite doesn't support BlazorUI module code generation right now. As BlazorUI is a new feature, code generation for Blazor modules will be implemented on the next version. On the other hand, code generation for Blazor application is available.

  • 0
    scott7106 created

    Hi @alper,

    After upgrading my CLI and Suite to 4.2 and everything worked correctly. For future reference, does Suite always generate based on the latest stable version regardless of which version I have installed? I do not see an option to tell Suite to use --preview or a specific version.

  • 0
    alper created
    Support Team

    Hello @alper,

    I was hoping this bug to be fixed in 4.2 (first saw it in 4.1.2) but it seems to want to stay. My problem is, when I build a Blazor + separate Identity Server project, the basic DateTimePicker is not behaving how it should. Tried both Sql and Mongo and results are as follows:

    SQL: -starts from 01/01/01 and allows you to manually modify only date or month. If you attemp to modify both date and month it turns back to 01/01/0001.The year is untouchable , as it appears you can only modify the last 2 digits of it. -The today button however, works ok, but it is unpleasent to scorll down to the required year starting from 2021 -Saves date exactly

    Mongo: -same problem with DateTimePicker and manual modifications -saves not the chosen date, but the day before that (eg: I pick 05.02.2021 and it saves 04.02.2021)

    Must mention the project and CRUD pages were generated by the abp suite and there were no modifications whatsoever to the page rendering the grid, nor were there any modifications to the AppService Create method.

    Thank you in advance for your response and keep up the good work!

    @ilitzy yeah it's a bad experience and I also didn't like that. I created an issue for Blazorise date component issue.

  • 0
    armanozak created
    Support Team

    Hi @gvnuysal,

    The code is generated correctly by the Suite and the behavior you see is normal.

    e alone is not a number in JavaScript or the browser. Therefore, it is not a valid input all by itself. That doesn't mean you cannot use e in number inputs. For example, 125e-5 (or 1.25e-3) is a perfectly valid input.

  • 0
    alper created
    Support Team

    @scott7106

    Hi @alper,

    After upgrading my CLI and Suite to 4.2 and everything worked correctly. For future reference, does Suite always generate based on the latest stable version regardless of which version I have installed? I do not see an option to tell Suite to use --preview or a specific version.

    Suite has a --preview option but not for generating code. you can install the preview version of the Suite like below

    abp suite install --preview
    

    If you are using a preview ABP version, then you can install the Suite preview version.

  • 0
    kzmyvr created
    • ABP Framework version: v4.2.0
    • UI type: MVC
    • DB provider: EF Core
    • Tiered (MVC) or Identity Server Seperated (Angular): no
    • Exception message and stack trace:
    • Steps to reproduce the issue:

    Hello, The tenant gives an invalid password error while adding. But when I give up and refresh the page, the tenant seems to have been added.

    I think there is a bug.

  • 0
    alper created
    Support Team

    @kzmyvr we'll check and get back to you.

  • 0
    michael.sudnik created

    When will 4.2.1 be released? We need the fix for the modals within modals.

  • 0
    james created
    • ABP Framework version: v4.2.0
    • UI type: Angular
    • DB provider: EF Core
    • Tiered (MVC) or Identity Server Separated (Angular): Yes
    • Exception message and stack trace: None

    I created a new Microservices project using ABP Suite. When I add a new Tenant, regardless of the username and password entered, the Save action always produces "[email protected]" with the standard password.

    When I create a standard Application (monolith), the action works as expected.

    BTW, the 4.2.0 update is awesome! Keep up the fantastic work.

  • 0
    alper created
    Support Team

    @michael.sudnik:

    When will 4.2.1 be released? We need the fix for the modals within modals.

    Today

  • 0
    l.lemmens created

    ABP Framework version: v4.2.0 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): Yes Exception message and stack trace: None

    Adding a navigation property with a reference to itsself, causes an issue.

  • 0
    alper created
    Support Team

    @james :

    I created a new Microservices project using ABP Suite. When I add a new Tenant, regardless of the username and password entered, the Save action always produces "[email protected]" with the standard password.

    When I create a standard Application (monolith), the action works as expected.

    BTW, the 4.2.0 update is awesome! Keep up the fantastic work.

    yes, this is a known bug and the team is working on this issue. this will be fixed in v4.3. as a workaround, you can update the new user credentials manually.

  • 0
    alper created
    Support Team

    @l.lemmens thanks for reporting, we'll check that.

  • 0
    hikalkan created
    Support Team

    Thanks for reporting. This issue will be resolved in next release (4.3).

  • 0
    developer1 created

    Hi,

    @gvnuysal's message remind me of this: Suite: open/edit a navigation -> cancel -> save and cancel buttons are disabled. Maybe already on some list, but i am to lazy to find out. ;-)

    Erik

  • 0
    l.lemmens created

    Hello

    Adding a property with an enum value is unable to save and generate:

  • 0
    alper created
    Support Team

    Hello

    Adding a property with an enum value is unable to save and generate:

    @l.lemmens can you give more details. I can't understand which is the incorrect class from the screenshot.

  • 0
    l.lemmens created

    Hello

    All automatic generated classes and repositories seem invalid. A piece of the summary seems to be included every time it should just need 'DynamicFieldEntityType type'

    • DynamicFieldGroupDto
    • DynamicFieldGroupCreateDto
    • DynamicFieldGroupUpdateDto
    • GetDynamicFieldGroupInput
    • DynamicFieldGroup
    • EfCoreDynamicFieldGroupRepository
    • IDynamicFieldGroupRepository
  • 0
    alper created
    Support Team

    Hello

    All automatic generated classes and repositories seem invalid. A piece of the summary seems to be included every time it should just need 'DynamicFieldEntityType type'

    • DynamicFieldGroupDto
    • DynamicFieldGroupCreateDto
    • DynamicFieldGroupUpdateDto
    • GetDynamicFieldGroupInput
    • DynamicFieldGroup
    • EfCoreDynamicFieldGroupRepository
    • IDynamicFieldGroupRepository

    can you share us your entity.json and enum class. it's in your solution root directory .\suite\entities folder.

  • 0
    l.lemmens created

    entity: { "Id": "0c368538-43bf-4bc3-81b8-9ea81fc7d7d5", "Name": "DynamicFieldGroup", "OriginalName": "DynamicFieldGroup", "NamePlural": "DynamicFieldGroups", "DatabaseTableName": "DynamicFieldGroups", "Namespace": "DynamicFieldGroups", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "Guid", "IsMultiTenant": true, "ShouldCreateUserInterface": false, "ShouldCreateBackend": false, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": true, "Properties": [ { "Id": "e7f10311-d742-47d5-b767-57082c28d9a0", "Name": "Name", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": true, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "e5020837-cd7f-40c6-8e01-ee66bdde73f9", "Name": "Order", "Type": "int", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": true, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "01727782-35c5-4b65-a587-d81314d92d06", "Name": "Type", "Type": "enum", "EnumType": "will define the discriminator for a dynamic field.\r\n /// </summary>\r\n public enum DynamicFieldEntityType", "EnumNamespace": "InduwareIO.Shared", "EnumAngularImport": "shared/enums/will-define-the-discriminator-for-a-dynamic-field-summary-public-enum-dynamic-field-entity-type", "IsNullable": false, "IsRequired": true, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "Product": 0, "Supplier": 1, "Project": 2, "Employee": 3 } } ], "NavigationProperties": [], "PhysicalFileName": "DynamicFieldGroup.json" } enum: namespace InduwareIO.Shared { public enum DynamicFieldEntityType { Product = 0, Supplier = 1, Project = 2, Employee = 3 } }

  • 0
    scott7106 created

    I am encountering an error trying to update a project to the latest release. The error occurs both the CLI and with Suite.

    Suite - upgrade all packages

    Starting Suite v4.2.0 ... Opening http://localhost:3000 Press Ctrl+C to shut down. [18:05:45 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }

    [18:05:45 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.GetLatestVersionFromMyGet(String packageId) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 222 at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.UpdateSolutionAsync(String solutionPath, Boolean includePreviews, Boolean includeReleaseCandidates, Boolean switchToStable, Boolean checkAll, String version) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 40 at Volo.Abp.Cli.Commands.UpdateCommand.UpdateNugetPackages(CommandLineArgs commandLineArgs, String directory, String version) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\UpdateCommand.cs:line 70 at Volo.Abp.Cli.Commands.UpdateCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\UpdateCommand.cs:line 41 at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.SolutionService.UpdatePackagesInSolutionAsync(String solutionPath, Boolean npm, Boolean nuget) at Volo.Abp.Suite.Controllers.AbpSuiteController.UpdatePackagesInSolution(String solutionPath, Boolean npm, Boolean nuget) at lambda_method1659(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.

    CLI - abp update from the aspnet-core directory

    [18:02:34 INF] ABP CLI (https://abp.io) [18:02:34 INF] Version 4.2.0 (Stable) [18:02:35 WRN] ABP CLI has a newer stable version 4.2.1, please update to get the latest features and fixes. [18:02:35 WRN] [18:02:35 WRN] Update Command: [18:02:35 WRN] dotnet tool update -g Volo.Abp.Cli [18:02:35 WRN] [18:02:37 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.GetLatestVersionFromMyGet(String packageId) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 222 at Volo.Abp.Cli.ProjectModification.VoloNugetPackagesVersionUpdater.UpdateSolutionAsync(String solutionPath, Boolean includePreviews, Boolean includeReleaseCandidates, Boolean switchToStable, Boolean checkAll, String version) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\VoloNugetPackagesVersionUpdater.cs:line 40 at Volo.Abp.Cli.Commands.UpdateCommand.UpdateNugetPackages(CommandLineArgs commandLineArgs, String directory, String version) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\UpdateCommand.cs:line 70 at Volo.Abp.Cli.Commands.UpdateCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\UpdateCommand.cs:line 41 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 59

  • 0
    murat.yuceer created

    Hello,

    CRUD Page Generator not generate files for blazor project if you working on module

  • 0
    alper created
    Support Team

    I am encountering an error trying to update a project to the latest release. The error occurs both the CLI and with Suite.

    Suite - upgrade all packages

    Starting Suite v4.2.0 ... Opening http://localhost:3000 Press Ctrl+C to shut down. [18:05:45 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }

    [18:05:45 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object.

    hi @scott7106

    this issue has been fixed in https://github.com/abpframework/abp/issues/7739

  • 0
    alper created
    Support Team

    Hello,

    CRUD Page Generator not generate files for blazor project if you working on module

    @murat.yuceer this is not implemented yet. we'll support Blazor modules in v4.4

  • 0
    murat.yuceer created

    acutally its look like same with application template, i created project with application template same namespace my module and when i create with generator i copy past from application to module. Is there any diffirence?

  • 0
    MILLENNIUM created

    After creating new project with Lepton theme source code embeded and account module source code embeded, I got the folloing error:

    Warning: Entry point '@volo/abp.ng.account/config' contains deep imports into 'FOLDER/angular/projects/account/admin/src/public-api.ts'. This is probably not a problem, but may cause the compilation of entry points to be out of order.

    Error: Failed to compile entry-point @volo/abp.ng.account/config (es2015 as esm2015) due to compilation errors: projects/account/admin/src/account-settings.module.ts:11:14 - error NG6002: Appears in the NgModule.imports of AccountConfigModule, but could not be resolved to an NgModule class.

    Is it missing an @NgModule annotation?

    11 export class AccountSettingsModule {} ~~~~~~~~~~~~~~~~~~~~~ projects/account/admin/src/account-settings.module.ts:11:14 - error NG6003: Appears in the NgModule.exports of AccountConfigModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

    Is it missing an Angular annotation?

    11 export class AccountSettingsModule {} ~~~~~~~~~~~~~~~~~~~~~

  • 0
    Mehmet created
    Support Team

    Hi @MILLENNIUM

    The problem might be related to ngcc. Can remove the yarn.lock and package-lock.json and run yarn (or npm install) command and try again?

  • 0
    MILLENNIUM created

    Hi @Mehmet,

    I tried, I don't think so, the issue occures after you create a new application with the latest version, and then install both lepton source code and account pro source code (replace packages with source code)

    The ngcc compiler must use the library from 'project' folder in angular app, but looks there is some missing configuration in the project, Now I did a small change to make the project run (cause I have to work on my tasks, unitl I find a solution) , I commented out importing the Account Config module, and it worked successfuly, but the menu in admin menu is missing some links now

  • 0
    bqabani created

    Any update? I got the same error:

    Warning: Entry point '@volo/abp.ng.account/config' contains deep imports into '......./angular/projects/account/admin/src/public-api.ts'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
    
    Error: Failed to compile entry-point @volo/abp.ng.account/config (es2015 as esm2015) due to compilation errors:
    projects/account/admin/src/account-settings.module.ts:28:14 - error NG6002: Appears in the NgModule.imports of AccountConfigModule, but could not be resolved to an NgModule class.
    
    Is it missing an @NgModule annotation?
    
    28 export class AccountSettingsModule {}
    
  • 0
    sgal created

    ABP Framework version: v4.2.1 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): yes Exception message and stack trace: Steps to reproduce the issue:

    ABP suite didn't generate front-end code. My project name is Acme.BookStorePro , package.json The name in is bookstorepro

  • 0
    [email protected] created

    ABP Framework version: v4.2.0 VisualStudioVersion = 16.0.31004.235 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): yes Exception message and stack trace: Steps to reproduce the issue:

    I created a vanilla project and without any modifications it wont build.

    • Create a new application using suite.
    • Open Solution
    • Build

    Error: \Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly. error MSB4018: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: Unexpected CopyLocal flag.

    I reduced the version down to 4.1.0 for all Volo packages and it worked, but failed again when I updated to 4.2.1

    Thanks Chris

  • 0
    Mehmet created
    Support Team

    Hi @MILLENNIUM, @bqabani

    Warning: Entry point '@volo/abp.ng.account/config' contains deep imports into '......./angular/projects/account/admin/src/public-api.ts'. This is probably not a problem, but may cause the compilation of entry points to be out of order. Error: Failed to compile entry-point @volo/abp.ng.account/config (es2015 as esm2015) due to compilation errors: projects/account/admin/src/account-settings.module.ts:28:14 - error NG6002: Appears in the NgModule.imports of AccountConfigModule, but could not be resolved to an NgModule class. Is it missing an @NgModule annotation? 28 export class AccountSettingsModule {}

    To resolve the problem above, first, you should add a file named tsconfig.prod.json with the below content to angular folder.

    {
      "compileOnSave": false,
      "compilerOptions": {
        "baseUrl": "./",
        "outDir": "./dist/out-tsc",
        "sourceMap": true,
        "declaration": false,
        "downlevelIteration": true,
        "experimentalDecorators": true,
        "module": "esnext",
        "moduleResolution": "node",
        "importHelpers": true,
        "target": "es2015",
        "typeRoots": ["node_modules/@types"],
        "lib": ["es2018", "dom"],
        "types": ["jest"]
      },
      "angularCompilerOptions": {
        "fullTemplateTypeCheck": true,
        "strictInjectionParameters": true
      }
    }
    

    Then open the package.json and add the following scripts:

    "scripts": {
     ...
     "compile:ivy": "yarn ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules",
     "postinstall": "npm run compile:ivy"
      },
    

    After this configuration, you should remove yarn.lock and run the yarn command.

    There is a problem with ngcc. It can not resolve the paths in tsconfig.json correctly. The solution above is just a trick.

  • 0
    [email protected] created

    i think , navigation property typehed dosen't work correctly from abp suite. is it bug ?

  • 0
    alper created
    Support Team

    ABP Framework version: v4.2.1 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): yes Exception message and stack trace: Steps to reproduce the issue:

    ABP suite didn't generate front-end code. My project name is Acme.BookStorePro , package.json The name in is bookstorepro

    @sgal

    Can you check the logs >= %UserProfile%\.abp\suite\logs (normally you should see an exception about not generating the code) Is there any problem with the backend code generation?

  • 0
    alper created
    Support Team

    ABP Framework version: v4.2.0 VisualStudioVersion = 16.0.31004.235 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Seperated (Angular): yes Exception message and stack trace:
    Steps to reproduce the issue:

    I created a vanilla project and without any modifications it wont build.

    • Create a new application using suite.
    • Open Solution
    • Build

    Error: \Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly. error MSB4018: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: Unexpected CopyLocal flag.

    I reduced the version down to 4.1.0 for all Volo packages and it worked, but failed again when I updated to 4.2.1

    Thanks Chris

    @[email protected] I have tried to reproduce the problem with 4.2.1 and it was OK. Try to build via dotnet build CLI tool. check whether the path of your project is too long try to re-login ABP via abp login <username> (if some packages are not being restored)

  • 0
    alper created
    Support Team

    @serdar.genc

    there was problem about this but it's fixed in the latest version (probably next upcoming version) for this version, the workaround is making these changes on your Suite Templates

  • 0
    [email protected] created

    @serdar.genc

    there was problem about this but it's fixed in the latest version (probably next upcoming version) for this version, the workaround is making these changes on your Suite Templates

    Thank you @Alper

  • 0
    sgal created

    @alper I found some problem

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/sgalcheung/.npm/_logs/2021-02-22T02_40_59_580Z-debug.log
    

    and I open the 2021-02-22T02_40_59_580Z-debug.log The content of the problem is as follows

    22 verbose stack Error: ENOTDIR: not a directory, open '/Users/sgalcheung/Documents/StudyABP/AbpSuite/AngularSeparateTutorial/Acme.BookStorePro/angular/.suite/schematics/node_modules/.bin/ng/package.json'
    23 verbose cwd /Users/sgalcheung/Documents/StudyABP/AbpSuite/AngularSeparateTutorial/Acme.BookStorePro/angular
    24 verbose Darwin 20.3.0
    25 verbose argv "/usr/local/Cellar/node/15.5.0/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "exec" "--" "/Users/sgalcheung/Documents/StudyABP/AbpSuite/AngularSeparateTutorial/Acme.BookStorePro/angular/.suite/schematics/node_modules/.bin/ng" "g" ".suite/schematics/collection.json:entity" "app-pro" "Acme.BookStorePro" "/Users/sgalcheung/Documents/StudyABP/AbpSuite/AngularSeparateTutorial/Acme.BookStorePro/aspnet-core/.suite/entities/Book.json"
    26 verbose node v15.5.0
    27 verbose npm  v7.3.0
    28 error code ENOTDIR
    29 error syscall open
    30 error path /Users/sgalcheung/Documents/StudyABP/AbpSuite/AngularSeparateTutorial/Acme.BookStorePro/angular/.suite/schematics/node_modules/.bin/ng/package.json
    31 error errno -20
    32 error ENOTDIR: not a directory, open '/Users/sgalcheung/Documents/StudyABP/AbpSuite/AngularSeparateTutorial/Acme.BookStorePro/angular/.suite/schematics/node_modules/.bin/ng/package.json'
    33 verbose exit -20
    
  • 0
    l.lemmens created

    Spelling mistake in the template:

  • 0
    alper created
    Support Team

    @sgal, do you have this directory?

    C:\Users\sgalcheung\Documents\StudyABP\AbpSuite\AngularSeparateTutorial\Acme.BookStorePro\angular\.suite\schematics
    

    also when this happens? generating a CRUD page? and your version pls?

  • 0
    alper created
    Support Team

    Spelling mistake in the template:

    @l.lemmens yeap you're right. we'll fix the name. thanks

  • 0
    sgal created

    @alper There is this directory, but ng looks like a js file, not a folder, so it does not contain package .json The abp suit page prompts that the generation is successful, yes, only CRUD is generated

  • 0
    armanozak created
    Support Team

    Hi sgal,

    We can reproduce the error you got with Node v15 and npm v7, but these are not the versions we support. Angular CLI has known problems with these two versions and we do not know when they will be ready to use.

    Could you please try with Node v14 and npm v6?

    Thanks.

  • 0
    [email protected] created

    ABP Framework version: v4.2.0
    VisualStudioVersion = 16.0.31004.235
    UI type: Angular
    DB provider: EF Core
    Tiered (MVC) or Identity Server Seperated (Angular): yes
    Exception message and stack trace:
    Steps to reproduce the issue:

    I created a vanilla project and without any modifications it wont build.

    • Create a new application using suite.
    • Open Solution
    • Build

    Error:
    \Preview\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): error MSB4018: The "ResolveAssemblyReference" task failed unexpectedly.
    error MSB4018: Microsoft.Build.Shared.InternalErrorException: MSB0001: Internal MSBuild Error: Unexpected CopyLocal flag.

    I reduced the version down to 4.1.0 for all Volo packages and it worked, but failed again when I updated to 4.2.1

    Thanks
    Chris

    @[email protected] I have tried to reproduce the problem with 4.2.1 and it was OK. Try to build via dotnet build CLI tool. check whether the path of your project is too long
    try to re-login ABP via abp login <username> (if some packages are not being restored)

    Hi @alper thanks for the check.

    Sorry this was on me, my PC had done a hard reset and the nuget package files for .net 5 were corrupt. Check Disk didnt pick it up. Had to do a NuGet global cache clean to get things working.

    Thanks again. Chris

  • 0
    sgal created

    @armanozak

    When I use node v14, it can generate CRUD papges normally, npm still uses v7, no other problems have been found for the time being. Thanks!

  • 0
    ademaygun created

    Hi, In the below screen "Available" and "Assign" captions are mismatched. Screens : Identity Resources, API Resources (Administration->IdentityServer->Clients->Actions->Edit->Resources->Api Resources)

  • 0
    sgal created

    About enum automatically obtain value problem When defining enum, the value can be obtained at compile time, but the entity.json generated by abp suite is null It is recommended to add this feature

  • 0
    alper created
    Support Team

    Hi, In the below screen "Available" and "Assign" captions are mismatched. Screens : Identity Resources, API Resources (Administration->IdentityServer->Clients->Actions->Edit->Resources->Api Resources)

    @ademaygun you are right. will be corrected in v4.3

  • 0
    alper created
    Support Team

    About enum automatically obtain value problem When defining enum, the value can be obtained at compile time, but the entity.json generated by abp suite is null It is recommended to add this feature

    hi this is not possible because these enums are being used also in Angular clients so there's no compile time there. And I see that your enum syntax doesn't seem to be formal written.

  • 0
    sgal created

    Yes, it is precisely because of the problem that Angular has, so I found out that entity.json did not generate a value at all, it was just null @alper

  • 0
    sgal created

    When an entity has an AppUser navigation property, angular does not generate AppUserDto

  • 0
    l.lemmens created

    Hello

    I had a working solution, then I've added the AccountModule and ThemeModule as a project to my solution (cfr. Link), but now the tests are broken. EFCoreTests are still fine.

    Application tests fail with following message: Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule, Volo.Abp.AspNetCore.Mvc, Version=4.2.1.0, Culture=neutral, PublicKeyToken=null: Could not find singleton service: Microsoft.AspNetCore.Hosting.IWebHostEnvironment, Microsoft.AspNetCore.Hosting.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60. See the inner exception for details. ---- System.InvalidOperationException : Could not find singleton service: Microsoft.AspNetCore.Hosting.IWebHostEnvironment, Microsoft.AspNetCore.Hosting.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60

    Stacktrace: ModuleManager.InitializeModules(ApplicationInitializationContext context) AbpApplicationBase.InitializeModules() AbpApplicationWithExternalServiceProvider.Initialize(IServiceProvider serviceProvider) AbpIntegratedTest1.ctor() InduwareIOTestBase1.ctor() InduwareIOApplicationTestBase.ctor() CollectiveLeaveAppServiceTests.ctor() line 18 ----- Inner Stack Trace ----- ServiceCollectionCommonExtensions.GetSingletonInstance[T](IServiceCollection services) AbpAspNetCoreServiceCollectionExtensions.GetHostingEnvironment(IServiceCollection services) <>c__DisplayClass1_0.<ConfigureServices>b__2(AbpAspNetCoreMvcOptions options) PostConfigureOptions1.PostConfigure(String name, TOptions options) OptionsFactory1.Create(String name) <>c__DisplayClass5_0.<Get>b__0() Lazy1.ViaFactory(LazyThreadSafetyMode mode) Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) Lazy1.CreateValue() Lazy1.get_Value() OptionsCache1.GetOrAdd(String name, Func1 createOptions) OptionsManager1.Get(String name) OptionsManager1.get_Value() AbpAspNetCoreMvcModule.AddApplicationParts(ApplicationInitializationContext context) AbpAspNetCoreMvcModule.OnApplicationInitialization(ApplicationInitializationContext context) OnApplicationInitializationModuleLifecycleContributor.Initialize(ApplicationInitializationContext context, IAbpModule module) ModuleManager.InitializeModules(ApplicationInitializationContext context)

    The module AbpAspnetCoreMvcModule is only used in the seperate AccountModule and ThemeModule. What do I do to fix this?

  • 0
    alper created
    Support Team

    When an entity has an AppUser navigation property, angular does not generate AppUserDto

    I reproduced it. AppUserDto doesn't exist in the Angular template (out of box). But if you run generate-proxy AppUserDto will be generated in your Angular code. Anyway I created an issue for that.

  • 0
    MILLENNIUM created

    Thank you Mehmet, This worked!

    Hi @MILLENNIUM, @bqabani

    Warning: Entry point '@volo/abp.ng.account/config' contains deep imports into '......./angular/projects/account/admin/src/public-api.ts'. This is probably not a problem, but may cause the compilation of entry points to be out of order. Error: Failed to compile entry-point @volo/abp.ng.account/config (es2015 as esm2015) due to compilation errors: projects/account/admin/src/account-settings.module.ts:28:14 - error NG6002: Appears in the NgModule.imports of AccountConfigModule, but could not be resolved to an NgModule class. Is it missing an @NgModule annotation? 28 export class AccountSettingsModule {}

    To resolve the problem above, first, you should add a file named tsconfig.prod.json with the below content to angular folder.

    { 
      "compileOnSave": false, 
      "compilerOptions": { 
        "baseUrl": "./", 
        "outDir": "./dist/out-tsc", 
        "sourceMap": true, 
        "declaration": false, 
        "downlevelIteration": true, 
        "experimentalDecorators": true, 
        "module": "esnext", 
        "moduleResolution": "node", 
        "importHelpers": true, 
        "target": "es2015", 
        "typeRoots": ["node_modules/@types"], 
        "lib": ["es2018", "dom"], 
        "types": ["jest"] 
      }, 
      "angularCompilerOptions": { 
        "fullTemplateTypeCheck": true, 
        "strictInjectionParameters": true 
      } 
    } 
    

    Then open the package.json and add the following scripts:

    "scripts": { 
     ... 
     "compile:ivy": "yarn ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules", 
     "postinstall": "npm run compile:ivy" 
      }, 
    

    After this configuration, you should remove yarn.lock and run the yarn command.

    There is a problem with ngcc. It can not resolve the paths in tsconfig.json correctly. The solution above is just a trick.

  • 0
    sgal created

    When an entity has an AppUser navigation property, angular does not generate AppUserDto

    I reproduced it. AppUserDto doesn't exist in the Angular template (out of box).
    But if you run generate-proxy AppUserDto will be generated in your Angular code. Anyway I created an issue for that.

    Where Can I see this issue, and is there any progress?

  • 0
    alper created
    Support Team

    When an entity has an AppUser navigation property, angular does not generate AppUserDto

    I reproduced it. AppUserDto doesn't exist in the Angular template (out of box).
    But if you run generate-proxy AppUserDto will be generated in your Angular code. Anyway I created an issue for that.

    Where Can I see this issue, and is there any progress?

    Next version there'll be a AppUserDto entity in Angular project. But you can basically create this entity in your Angular project manually.

    string TenantId
    string Username
    string Email
    string Name
    string Surname
    bool EmailConfirmed
    string PhoneNumber
    bool PhoneNumberConfirmed
    bool LockoutEnabled
    bool IsLockedOut
    bool TwoFactorEnabled
    
  • 0
    sgal created

    Cannot find Volo.Abp.Commercial.SuiteTemplates.dll #4

    Earlier, abp suite did not support module generation curd, now I still encounter some problems. And, when I create a module in the application module, their UI are not separated

  • 0
    ademaygun created

    Hello, We cannot find any UI page about Background Jobs in commercial (angular) web panel. Is there your a roadmap planning about Background Jobs Management UI page(s)

  • 0
    alper created
    Support Team

    Hello, We cannot find any UI page about Background Jobs in commercial (angular) web panel. Is there your a roadmap planning about Background Jobs Management UI page(s)

    ABP has a built-in Background Job Manager and it's a simple one which has no UI. If you are looking for a rich background job system you can integrate one of these (they have their own dashboards)

    • Hangfire: https://docs.abp.io/en/abp/latest/Background-Jobs-Hangfire
    • RabbitMQ: https://docs.abp.io/en/abp/latest/Background-Jobs-RabbitMq
    • Quartz: https://docs.abp.io/en/abp/latest/Background-Jobs-Quartz
  • 0
    alper created
    Support Team

    Cannot find Volo.Abp.Commercial.SuiteTemplates.dll #4

    Earlier, abp suite did not support module generation curd, now I still encounter some problems. And, when I create a module in the application module, their UI are not separated

    can you explain in details? are you adding a module to your application (is it microservice template?) what's your project type? UI options?

  • 0
    sgal created

    The operation in abp suite can be summarized as the following steps: 1.Create an Application template project 2.On the Module page, use the button to create a module, which will automatically add dependencies to the Application Module 3.Open the Module just created in abp suite, add an entity, click the generate button, an error Cannot find Volo.Abp.Commercial.SuiteTemplates.dll #4 This works fine if I add the package 4.After that, the back-end code was generated normally, but the front-end angular did not generate it I think the page generated by crud should be under the application module's angle, not under models own angular. I recommend putting this modules in the outermost directory.

    I want to make a module similar to the module you provide, and then pluggable use. Is this method feasible and is there a good method to recommend?

  • 0
    EngincanV created
    Support Team

    Thanks for your information @sgal. I reproduced your problem and as you say user interface (Angular) could not be generated. I've created an issue about it.

  • 0
    bqabani created

    Dears,

    I have a working abp in local environment, when I published to local staging server (without https) it runs but no login links work, all (Login) links in menu and homepage does not do anything!

    I have no error in console.

    Any idea?

    It is 4.2 version (Angular) Commercial

  • 0
    bqabani created

    The issue is solved by changing http to be https (unfortunately there is no error message to tell the the issue, you just need to guess!)

    Dears,

    I have a working abp in local environment, when I published to local staging server (without https) it runs but no login links work, all (Login) links in menu and homepage does not do anything!

    I have no error in console.

    Any idea?

    It is 4.2 version (Angular) Commercial

  • 0
    jackmcelhinney created

    Hello! Two small bugs to report:

    1. With Angular UI, the Administration sidebar menu closes after selecting an element. For example, starting from the Home page, click Administration->Identity Management->Roles. It navigates to the Roles page but the Administration menu collapses. Not sure if this was introduced in 4.1 or 4.2 as we upgraded from 4.0 to 4.2.

    2. The lockout message in English could use a few fixes. Please notice the bold and strike-through below.


    Your account has been locked by the admin or due to invalid login attempts. Please try again later. Contact ~~to~~ your system administrator if you think this is a mistake.


    As always, thanks for the help!

    Edit:

    Here are two more:

    1. With Angular UI, when signed in with an account that does not have any administration permissions, the administration menu button briefly shows when clicking other menu items. This happens frequently but seemingly randomly.
    2. The cancel button on the login page does not properly return to the unauthenticated app when using Angular UI. It seems to redirect to http://localhost:4200/?error=access_denied and throws this error in the console:

    core.js:4197 ERROR OAuthErrorEvent {type: "code_error", reason: {…}, params: {…}}

  • 1
    alper created
    Support Team

    Hi,

    1. I think it's fixed in the latest version. I couldn't reproduce it on our demo website which is also Angular commercial.abp.io/demo

    2. The text is updated

    For the last 2 items, I created an issue.

  • 0
    ilitzy created

    Hello,

    I don't know if this was the intended behaviour, but the date picker allows you to set a year having 6 digits :)) ! structure: MVC+Mongo+separated IdentityServer. Thank you in advance and keep up the good work!

  • 0
    murat.yuceer created

    Hi, Suite not create generate files for blazor in module template. Can you fix it in 4.3? We are doing same think for copy past on application template.

  • 0
    alper created
    Support Team

    @ilitzy your template pls? blazor, mvc, angular.

    @murat.yuceer 4.3 RC deployment is still ongoing so some packages maybe still in publish phase.

  • 0
    [email protected] created

    1.I created a new project ( MVC - EF - 4.2.2) 2. Add Lepton Theme module with source code.

    1. And :

  • 1
    [email protected] created

    1.I created a new project ( MVC - EF - 4.2.2)

    1. Add Identity module with source code

    2. On build I see error in d:\abptest2\src\Test.Domain.Shared\TestDomainSharedModule.cs(38,23): error CS0246: The type or namespace name "AbpIdentityProDomainSharedModule" could not be found (are you missing a using directive or an assembly reference?)[d:\abptest2\src\Test.Domain.Shared\Test.Domain.Shared.csproj]

  • 0
    [email protected] created

    1.I created a new project ( MVC - EF - 4.2.2) 2. Add Lepton Theme module with source code.

    1. And :

    any comment ?

  • 0
    alper created
    Support Team

    hi @serdar,

    this on my list, I'll check this tomorrow.

  • 0
    alper created
    Support Team

    1.I created a new project ( MVC - EF - 4.2.2)
    2. Add Lepton Theme module with source code.

    1. And :

    any comment ?

    New packages have been added to Lepton, some of them have been renamed. we made it backwards compatible, but since we cannot change the 4.2.2 version of the CLI. You should do it with 4.3.0 RC version. Or you can completely update your project to the latest preview (if that's not a problem for you)

  • 0
    yekalkan created
    Support Team

    @Serdar

    If you don't want to update your project to v4.3.0, you can run the following Cli commands:

    dotnet tool uninstall Volo.Abp.Cli -g dotnet tool install Volo.Abp.Cli -g --version 4.3.0-rc.2 abp add-module Volo.LeptonTheme --with-source-code --add-to-solution-file (Run in the folder of the .Sln file of your project) dotnet tool uninstall Volo.Abp.Cli -g dotnet tool install Volo.Abp.Cli -g

    This commands will install ABP CLI with the latest preview version, add LeptonTheme correctly and them switch ABP CLI version back to 4.2.2

  • 0
    [email protected] created

    1.I created a new project ( MVC - EF - 4.2.2)
    2. Add Lepton Theme module with source code.

    1. And :

    any comment ?

    New packages have been added to Lepton, some of them have been renamed. we made it backwards compatible, but since we cannot change the 4.2.2 version of the CLI. You should do it with 4.3.0 RC version. Or you can completely update your project to the latest preview (if that's not a problem for you)

    ok, Alper. I'm looking forward to 4.3 Release already.

  • 0
    [email protected]alentra.net created

    @Serdar

    If you don't want to update your project to v4.3.0, you can run the following Cli commands:

    dotnet tool uninstall Volo.Abp.Cli -g dotnet tool install Volo.Abp.Cli -g --version 4.3.0-rc.2 abp add-module Volo.LeptonTheme --with-source-code --add-to-solution-file (Run in the folder of the .Sln file of your project) dotnet tool uninstall Volo.Abp.Cli -g dotnet tool install Volo.Abp.Cli -g

    This commands will install ABP CLI with the latest preview version, add LeptonTheme correctly and them switch ABP CLI version back to 4.2.2

    Thanks @yekalkan. I will use this.

  • 0
    scott7106 created

    There is an issue with the current UnitOfWork system of the ABP Framework. Please see https://github.com/abpframework/abp/issues/8740 for the details. As of now, I can confirm the issue in 4.2.2 which is my current version. I have not tested additional versions.

    The code for the AppService.UpdateAsync method which gets generated by ABP Suite is problematic. The default for the autoSave parameter is false which may fail silently in certain situations.

  • 0
    alper created
    Support Team

    @scott7106 I've checked the issue and related Suite template will be updated in v4.31. For a workaround you can update your Suite template. Open Suite, go to Templates tab. Search for AppService.txt

    Find the UpdateAsync line and add the autoSave: true argument.

    %%entity-name-camelcase%% = await _%%entity-name-camelcase%%Repository.UpdateAsync(%%entity-name-camelcase%%, autoSave: true);