After running Power Tools to create a new Entity we always get an error:
An unhandled exception occurred while processing the request. AbpException: There is no permission with name: AppPermissions.Pages_CourseCategories
Checking the file 'AppNavigationProvider.cs' it looks like the tool wrapped the permission in double quotes:
.AddItem(new MenuItemDefinition( AppPageNames.Common.CourseCategories, L("CourseCategories"), url: "App/CourseCategories", icon: "flaticon-more", permissionDependency: new SimplePermissionDependency("AppPermissions.Pages_CourseCategories") <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ) )
Removing the quotes in that line fixes the error: permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_CourseCategories) <<<<<<<<<<<<<<
Is this a bug with the Power Tools, or am I doing something wrong when I create the entity? Would rather not manually update that file everytime.
3 Answer(s)
-
0
hi
Please update PowerTool and try again.
https://marketplace.visualstudio.com/items?itemName=Volosoft.AspNetZeroPowerTools&ssr=false
see https://github.com/aspnetzero/aspnet-zero-core/issues/3010
-
0
Hi, I've uninstalled Power Tools and reinstalled the latest version. Still having this issue. I also noticed that the tool is not creating cooresponding fields for Navigation Property. This causes an error when trying to add or edit an entity.
A coworker is using the tools without this issue, so I think it may be something with the way my environment is setup. Any thoughts?
-
0
Hi @ebenzle. It is fixed and will be released asap. Can you please download new version and check it.