Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
- ABP Framework version: v3.3.1
- UI type: Angular
- Tiered (MVC) or Identity Server Seperated (Angular): yes
- Exception message and stack trace:
[16:42:09 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }
[16:42:09 ERR] Value cannot be null. (Parameter 'path') System.ArgumentNullException: Value cannot be null. (Parameter 'path') at System.IO.File.ReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken) at System.IO.File.ReadAllTextAsync(String path, CancellationToken cancellationToken) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.C0xYNTSSOo(Boolean ) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.gx4YANHYOS() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.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.
- Steps to reproduce the issue:
- 1- Run ABP SUite
- 2- Create new entity
- 3- Click "Save and Generate" Button
- 4- Perfect. ABP through error in console.
30 Answer(s)
-
0
@shobhit can you update your project to v3.3.2?
-
0
Hi Alper, I have upgraded my project to recent 4.0.0. I run the ABP Suite and created new entity. DB and API created successfully but Angular UI has not created. I am in deep trouble. None of the ABP things are running after upgrade to 4.0.0.
-
0
hi that's a good progress. I just want you to take a look at my this post https://support.abp.io/QA/Questions/626/Bugs--Issues-v4X#answer-f02d209c-0bb8-e1bd-a4d6-39f940b19df6
the v4.0.0 has an issue on generating Angular code, this is realated to a change in @angular-devkit/schematics. it's already fixed in v4.0.1 but it'll be released next week.
-
0
Today i run the ABP suite and got below error:
D:\Projile\EzpandCC\EzpandCC>abp suite [15:33:15 INF] ABP CLI (https://abp.io) [15:33:15 INF] Version 4.0.0 (Stable) [15:33:18 WRN] ABP CLI has a newer stable version 4.0.1, please update to get the latest features and fixes. [15:33:18 WRN] [15:33:18 WRN] Update Command: [15:33:18 WRN] dotnet tool update -g Volo.Abp.Cli [15:33:18 WRN] Starting Suite v4.0.0 ... Opening http://localhost:3000 Press Ctrl+C to shut down. [15:37:06 ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }
[15:37:06 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.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.EthCyRshbE() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.RL4CWOTQr1() at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.EntityGenerateCommand.ExecuteAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.CommandManager.ExecuteAllAsync(CrudPageCommandOptions options) at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.CrudPageGenerator.GenerateAsync(EntityModel entity, Solution solution) at Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync(Guid solutionId, EntityModel entity) at lambda_method1544(Closure , Object ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.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.
-
0
Hi Team. It is really massed up for me. Since last 1 week i am not able to progress in project. After upgrade i am facing continuous breaks, which is hearting client and me. Can we have some stable system. Please help me ASAP.
-
0
it seems like you have removed an existing enum or changed it location. can you try to redefine your entity. and share your entity.json with us. it's in the root directory of your solution.
YourProject\aspnet-core\.suite\entities
-
0
please find the url having entities json as requested:
https://xpertladr-my.sharepoint.com/:f:/p/shobhit/EiCxG-pWPz9PjH7_kEAE8EYBzs8ZUHjcrETftbZhHXqvkw?e=XxWdCg
-
0
Please help me.
-
0
hi,
I created a new solution with the following command
abp new Angular.EfCoreSeperated1215 -t app-pro -u angular -m none --separate-identity-server -csf
then I copied your Suite json files to my project
removed your enum property and create a new enum called
ContentStatus
in Domain.Shared project as belowpublic enum ContentStatus { Draft = 1, Reviewed = 2, Published = 3 }
I generated 2 entites ... I saw that we have a Angular issue on v4.0.1 (our Angular team has been fixed this error and it'll be released as v4.0.2) but there's a workaround see this post.
And I can successfully see these 2 entities in my Angular app. I couldn't reproduce your case!
I think you have a problem with the
ContentStatus
enum. Try to generate the entity withoutContentStatus
property to see if it works. -
1
I just want you to show that enum declaration is specific to that proeject. Because the namepsace of enum is written here:
"EnumNamespace": "Angular.EfCoreSeperated1215",
GuidePostDesigner.json
{ "Id": "732251aa-2808-4217-9bfa-9a9ea1b33652", "Name": "GuidePostDesigner", "OriginalName": "GuidePostDesigner", "NamePlural": "GuidePostDesigners", "DatabaseTableName": "GuidePostDesigners", "Namespace": "GuidePostDesigners", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "Guid", "IsMultiTenant": true, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": true, "CreateTests": true, "Properties": [ { "Id": "34e7af50-3dba-4a88-881f-000d9a598587", "Name": "GuidePostId", "Type": "long", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": true, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "0e7c1555-8ae5-4edc-8ed6-2de7cbb5b8eb", "Name": "ViewUri", "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": "8911dfc5-1a75-41b9-ac85-285713745a43", "Name": "CreateUri", "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": "ffd56da6-8935-40a5-86c2-f4374fb553bd", "Name": "UpdateUri", "Type": "string", "EnumType": "", "EnumNamespace": "", "EnumAngularImport": "shared/enums", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": null }, { "Id": "4e21fa2c-57f4-474f-a8cf-c43254123b90", "Name": "Title", "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": "5a010fd1-f0c2-4b2c-9124-204b40618769", "Name": "ContentStatus", "Type": "enum", "EnumType": "ContentStatus", "EnumNamespace": "Angular.EfCoreSeperated1215", "EnumAngularImport": "shared/enums/content-status", "IsNullable": false, "IsRequired": false, "MinLength": null, "MaxLength": null, "SortOrder": 0, "SortType": 0, "Regex": "", "EmailValidation": false, "EnumValues": { "Draft": 1, "Reviewed": 2, "Published": 3 } } ], "NavigationProperties": [], "PhysicalFileName": "GuidePostDesigner.json" }
WorkflowSetting.json
{ "Id": "7f5856e9-41d2-4390-91da-35a9ff0697b8", "Name": "WorkflowSetting", "OriginalName": "WorkflowSetting", "NamePlural": "WorkflowSettings", "DatabaseTableName": "WorkflowSettings", "Namespace": "WorkflowSettings", "BaseClass": "FullAuditedAggregateRoot", "PrimaryKeyType": "Guid", "IsMultiTenant": true, "ShouldCreateUserInterface": true, "ShouldCreateBackend": true, "ShouldAddMigration": true, "ShouldUpdateDatabase": false, "CreateTests": true, "Properties": [ { "Id": "db2c63a5-f47a-4ca5-8f82-8240408a1995", "Name": "DesignerUri", "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": "7b648d0c-ba29-4c54-b938-3ed0ee798e21", "Name": "ApiUri", "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": "56361a31-c80d-47e8-be79-d51cefc0dee9", "Name": "EnvironmentId", "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": "cc172074-774d-4792-9c90-71388704a0f1", "Name": "OrganizationId", "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": "860b9647-9f6e-44e5-b6fb-6d673ed4016a", "Name": "RegionalSubDomain", "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": "999992ee-52b9-4c8d-b1a9-32bf4527c859", "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 } ], "NavigationProperties": [], "PhysicalFileName": "WorkflowSetting.json" }
-
0
Thanks. Currently i am generating enum in C# and then giving reference in ABP suite resolve the issue.
-
0
Got new problem now:
I have downloaded below 3 modules:
Creating new entity with below nevigation property: Use case is user has to select tenant and Role for the selected tenanat.
Got the error in ABP suite console, as all these files doesn't exist. Not sure then why these files are required:
[15:03:17 ERR] Could not find file 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Admin.Web\EzpandCCWebAutoMapperProfile.cs'. System.IO.FileNotFoundException: Could not find file 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Admin.Web\EzpandCCWebAutoMapperProfile.cs'. File name: 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\modules\Volo.Account.Pro\src\Volo.Abp.Account.Pro.Admin.Web\EzpandCCWebAutoMapperProfile.cs'
-
0
sorry but this is not supported. you can only generate code in your application or in the module solution itself. you cannot generate code across modules and application.
-
0
Hi Alper, Exactly my quesiton? if you will look error message ABP Suite is looking class files inside ABP modules while it should look inside the application code as file exist in application code. so not sure why???? Just to confirm you i have only downloaded these 3 modules (as mentioned above) and tried to create new entity via ABP suite. No Changes in code manually. I want to create new entity having reference to tenant and roles.
-
0
because Suite cannot determine project UI and it's trying to create AutoMapper class for MVC. But you are using Angular. This is because you are using module source-code in the application. can you just try to create the entity without modules source-code included.
-
0
Yes Alper. Without source code, ABP suite works well. So is that mean i should not download any code and should not customize any part? If yes then ABP doesn't solve my business purpose. If no then ABP suite has a bug and i am expecting that it should be fixed.
-
0
you are free to download the source-code and modify it. But as I mention, this is not supported by Suite. Also if you modify the source-code you will also not be able to update from NuGet packages. You can also say this is a bug. Also Suite doesn't generate code if you have 2 different front-end UI (like Blazor and MVC), it's also not bug. It just doesn't support now and it's not a blocking case. You can write your entities manually as you do. I'll create an issue to cover your case.
Issue no: #4377
-
0
So you are confirming me that ABP suite can be used only for generating new entities but i cannot download your module source code. And if i download module source code then ABP Suite will not work.
If i download module source code and wants to customize as per my business need, then also ABP Suite will not work.
I need confirmation. As this is my business need.
-
0
Hi @shobhit
I can confirm that this is a bug. We'll resolve it and release v4.0.2 soon.
-
0
Thanks a lot @yekalkan. Will wait for new release.
-
0
Hi Team, Today i have created a new entity via ABP Suite 4.0.0 with Angular. As i run the ABP suite, got below error:
Even though i am using the SQL DB, not sure why i am getting Mongo DB module? Please help D:\Projile\EzpandCC\EzpandCC>abp suite
[10:40:36 INF] ABP CLI (https://abp.io) [10:40:37 INF] Version 4.0.0 (Stable) [10:40:46 WRN] ABP CLI has a newer stable version 4.0.2, please update to get the latest features and fixes. [10:40:46 WRN] [10:40:46 WRN] Update Command: [10:40:46 WRN] dotnet tool update -g Volo.Abp.Cli [10:40:46 WRN] Starting Suite v4.0.0 ... Opening http://localhost:3000 Press Ctrl+C to shut down. [11:43:58 ERR] Cannot find the Entity Framework Core Module D:\Projile\EzpandCC\EzpandCC\aspnet-core\download\Volo.Saas\src\Volo.Saas.MongoDB\MongoDB\EzpandCCMongoDbModule.cs
-
0
can you try with the 4.1.0-rc.2
dotnet tool install --global Volo.Abp.Cli --version 4.1.0-rc.2 && abp suite update
-
0
Sorry Alper. This is too chaotic for me to keep upgrading framework and keep breaking some functionality. I am feeling i am doing ABP testing but not building my product.
Now i cannot upgrade framework until you sure me that it will not break anything else. I need confirmation before upgrade.
-
0
actually the problem is related to using module source-code inside the main application and creating CRUD pages with your hybrid structure. A module consists of several database providers and UI frameworks. Therefore Suite is trying to generate code for each of them. What's the official way of doing this; create your CRUD pages inside your module solution. If you reference entities between your modules, you are breaking all best practises because after that you strictly depend on your module.
-
0
Hello @alpher, Today with ABP 4.0.2 i am adding source code moduel "Volo.Account.Pro" and got below error. So can someone help me to resolve this problem so that i can use the ABP module source code in my project. Below is the ABP console logs:
Writing C:\Users\shobhit\AppData\Local\Temp\tmp691E.tmp
info : Adding PackageReference for package 'Volo.Abp.Account.Pro.Shared.Application' into project 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application\EzpandCC.Application.csproj'. info : Restoring packages for D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application\EzpandCC.Application.csproj... info : Package 'Volo.Abp.Account.Pro.Shared.Application' is compatible with all the specified frameworks in project 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application\EzpandCC.Application.csproj'. info : PackageReference for package 'Volo.Abp.Account.Pro.Shared.Application' version '4.0.2' added to file 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application\EzpandCC.Application.csproj'. info : Committing restore... info : Writing assets file to disk. Path: D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application\obj\project.assets.json log : Restored D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application\EzpandCC.Application.csproj (in 2.96 sec). Determining projects to restore... Writing C:\Users\shobhit\AppData\Local\Temp\tmp8716.tmp info : Adding PackageReference for package 'Volo.Abp.Account.Pro.Shared.Application.Contracts' into project 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application.Contracts\EzpandCC.Application.Contracts.csproj'. info : Restoring packages for D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application.Contracts\EzpandCC.Application.Contracts.csproj... info : Package 'Volo.Abp.Account.Pro.Shared.Application.Contracts' is compatible with all the specified frameworks in project 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application.Contracts\EzpandCC.Application.Contracts.csproj'. info : PackageReference for package 'Volo.Abp.Account.Pro.Shared.Application.Contracts' version '4.0.2' added to file 'D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application.Contracts\EzpandCC.Application.Contracts.csproj'. info : Committing restore... info : Writing assets file to disk. Path: D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application.Contracts\obj\project.assets.json log : Restored D:\Projile\EzpandCC\EzpandCC\aspnet-core\src\EzpandCC.Application.Contracts\EzpandCC.Application.Contracts.csproj (in 1.73 sec). [14:11:39 ERR] Error occured while adding the module Volo.Account.Prowith source-code to the solution "64cbc651-d627-4153-910d-9dca54127e77".. System.ArgumentNullException: Value cannot be null. (Parameter 'path') at System.IO.Path.GetFullPath(String path) at System.IO.DirectoryInfo..ctor(String path) at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.RemoveProjectByPostFix(ModuleWithMastersInfo module, String moduleSolutionFile, String targetFolder, String postFix) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 186 at Volo.Abp.Cli.ProjectModification.SolutionModuleAdder.RemoveUnnecessaryProjectsAsync(String solutionDirectory, ModuleWithMastersInfo module, String[] projectFiles) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 144 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:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectModification\SolutionModuleAdder.cs:line 98 at Volo.Abp.Cli.Commands.AddModuleCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\AddModuleCommand.cs:line 59 at Volo.Abp.Suite.Controllers.AbpSuiteController.AddModuleAsync(AddModuleInput input)