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
68 Answer(s)
-
0
Hi @alper,
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.
{ 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
- 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
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
- 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
- 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
-
0
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
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
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
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
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
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 usee
in number inputs. For example,125e-5
(or1.25e-3
) is a perfectly valid input. -
0
@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 belowabp suite install --preview
If you are using a preview ABP version, then you can install the Suite preview version.
-
0
- 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
- 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
@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
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
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
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
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
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
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
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
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
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
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
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 theyarn
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
-
0
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
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 viaabp login <username>
(if some packages are not being restored) -
0
-
0
@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
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
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 viaabp 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
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
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) AbpIntegratedTest
1.ctor() InduwareIOTestBase
1.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) OptionsFactory
1.Create(String name) <>c__DisplayClass5_0.<Get>b__0() Lazy1.ViaFactory(LazyThreadSafetyMode mode) Lazy
1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) Lazy1.CreateValue() Lazy
1.get_Value() OptionsCache1.GetOrAdd(String name, Func
1 createOptions) OptionsManager1.Get(String name) OptionsManager
1.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
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
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 theyarn
command.There is a problem with ngcc. It can not resolve the paths in tsconfig.json correctly. The solution above is just a trick.