Hi
I just upgraded to latest version. I am using MVC.
When I try to generate/regenerate an entity using the RAD tool, I get the following error. This error occurs when I select "create non modal crud page" check box
System.NullReferenceException: Object reference not set to an instance of an object.
at List<LoopedNavigationPropertyTemplate> AspNetZeroRadTool.FileWizards.FileGenerators.Generic.TemplateReader.
ReadNavigationPropertyTemplate(string path)
at void AspNetZeroRadTool.GeneratorFromTemplate.HuSpEyiB3(TemplateInfo , TemplatePathInfo , string ,
EntityConfiguration )
√ Frontend generation is completed.
√ Maui generation is completed.
√ Localizations are updated.
Code generation is complete. Press ENTER to exit...
Any idea?
Logs are not helpful
DEBUG 2025-02-12 05:24:39,912 [1 ] lVisualStudioExtension.AspNetZeroRadTool - Menu item clicked with params > loadFromJson: True, loadFromDatabase: False, showAboutForm: False
DEBUG 2025-02-12 05:25:08,450 [1 ] dioExtension.Dialogs.EntityGeneratorForm - Generate entity started.
ERROR 2025-02-12 05:27:18,694 [1 ] dioExtension.Dialogs.EntityGeneratorForm - An error occured while generating entity^C
WARN 2025-02-12 05:27:18,694 [1 ] ToolVisualStudioExtension.Helpers.Logger - ^C
4 Answer(s)
-
0
Hi @Prasanthtp
Thank you for your feedback. This issue can be reproduced. I have created an issue for it, and you can follow the updates here. Have a great day!
-
0
Hi @Prasanthtp
You have updated your project to the latest version, but have you also updated the Power Tools tool to the latest version, v4.5.4? I notice that this issue has been resolved when I check it in the latest versions. If Power Tools is not updated to the latest version, can you update it and check if this problem persists? The Logs.txt file also contains previous records.
-
0
I use latest version.
I have noticed the issue is while generating some .js files. It only generates a min.js file. For example, index.js is missing instead it creates index.min.js.
-
0
Hi @Prasanthtp
We have solved this problem with this issue. This problem will be fixed when Power Tools releases a new version.