DynamicRoleBasedAuthorizationNETCore icon indicating copy to clipboard operation
DynamicRoleBasedAuthorizationNETCore copied to clipboard

I can create the role in asp.net core 5

Open justaddisu opened this issue 3 years ago • 1 comments

I can create the role in asp.net core 5 Please help me how to fix the error

The errors on "var controllers = (IEnumerable<MvcControllerInfo>)ViewData["Controllers"];"

An unhandled exception occurred while processing the request. InvalidCastException: Unable to cast object of type 'System.Collections.Generic.List1[DynamicAuthorization.Mvc.Core.MvcControllerInfo]' to type 'System.Collections.Generic.IEnumerable1[DynamicAuthorization.Models.MvcControllerInfo]'. AspNetCore.Views_Role_Create.ExecuteAsync() in Create.cshtml, line 5

image

justaddisu avatar Feb 20 '22 16:02 justaddisu

@justaddisu Could please tell me how can I reproduce this error or you can share the codes related to this error via a GitHub repo.

mo-esmp avatar Feb 21 '22 11:02 mo-esmp