Open Closed

abp suite create module crud page failed #54


User avatar
0
trendline created

When using abp suite create crud pages for a module template, it seems missed the Permissions.cs file. it failed with below logs:

2020-03-09 04:05:38.166 +08:00 [INF] 4/9 - ProxyControllerCommand completed.                   | Duration: 10 ms.
2020-03-09 04:05:38.166 +08:00 [INF] 5/9 - PermissionCommand started...
2020-03-09 04:05:38.167 +08:00 [WRN] ---------- RemoteServiceErrorInfo ----------
2020-03-09 04:05:38.167 +08:00 [WRN] {
  "code": "Cannot find Permissions.cs",
  "message": "An internal error occurred during your request!",
  "details": null,
  "validationErrors": null
}
2020-03-09 04:05:38.167 +08:00 [WRN] Exception of type 'Volo.Abp.BusinessException' was thrown.
Volo.Abp.BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown.
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.PermissionCommand.EqKcdt4xe9()
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.PermissionCommand.hXQc5gQJvB()
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.PermissionCommand.ExecuteAsync(CrudPageCommandOptions options)
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Commands.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(String solutionName, EntityModel entity)
   at lambda_method(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.&lt;InvokeNextActionFilterAsync&gt;g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2020-03-09 04:05:38.168 +08:00 [WRN] Code:Cannot find Permissions.cs```

3 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Have you moved or renamed the file that contains your permission names?

  • User Avatar
    0
    trendline created

    @yekalkan, no, this a new solution based on module-pro template. it seems, it cannot get the template file from server?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    See https://support.abp.io/QA/Questions/17#answer-47ee0eaa-6543-fa31-447c-39f332362369

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38