You blew my mind with how good you explain things, I get c# in school and Im always lacking behind because the teacher goes over everything so quickly!
I'm new to this, but was able to get it to work...thank you so much! I look forward to watching more of the videos in your series (and watching all of the adds...to help support a good content creator)
Thanks a lot for the course, its amazing. Please tell me why in the CreateRole view is not necessary specify that the asp-controller is Administration but is enough specify asp-action="CreateRole"
Hi , I'm encountering the following error when following your solution: An unhandled exception occurred while processing the request. InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager`1[Microsoft.AspNetCore.Identity.IdentityRole]' while attempting to activate 'Hybrid2.Controllers.AdministrationController'. Please assist
services.AddDefaultIdentity(options => options.SignIn.RequireConfirmedAccount = true) .AddRoles() // just add this line into your startup and i think your problem is solved .AddEntityFrameworkStores();
I too have the problem Dieter Munnik is experiencing. I have added custom fields to AspNetUsers using an ApplicationUser class inheriting from IdentityUser as in your other videos. In Startup.cs I have added .AddRoles() but I then get errors referring to ViewData["Title"] and RoleName usage in the Razor View. After commenting these out the View opens but is of no use to add records of course. But my other controller actions using standard models to open CRUD Razor Views all have errors referring to the CreateRoleViewModel requiring a primary key. Any advice?
Extra info - it appears IdentityRole is missing a using directive or an assembly reference. Any help on where to add these would be appreciated especially as I find your examples the best on the web.
You blew my mind with how good you explain things, I get c# in school and Im always lacking behind because the teacher goes over everything so quickly!
Thanks. You just saved my life with these .net core role videos.
:-) Thank you. Feels great and motivated when we get to know our videos are helpful. Thank you for letting us know.
I'm new to this, but was able to get it to work...thank you so much! I look forward to watching more of the videos in your series (and watching all of the adds...to help support a good content creator)
Thanks Mr.Venkat, you uploaded a this video almost after 1 week. I was early waiting for new video since 1 week.
Very nice Explanation Sir
Thank you best teacher
You help me a looooooooooot. Thansk Pragym!!!
These Videos are much helpful
Thank you very much.
2022 and still good. TY for you effrots.
long time we missed you
Hi, thank you for this amazing content!
Do you have any plans for a lesson on LDAP authentication using ActiveDirectory to link to custom permission?
Thanks a lot for the course, its amazing.
Please tell me why in the CreateRole view is not necessary specify that the asp-controller is Administration but is enough specify asp-action="CreateRole"
what is the point of creating a role if I will need to hard coded it later on each page ????
Thanks Venkat. go go 78/124
Thanks for the very important content, Could you please share the knowledge of Clean Architecture for ASP.NET Core?
very nice
Please do Claims and Policy as well.
Sure Ivandro - We will in our upcoming videos. Thank you for the suggestion.
Can you please discuss CRUD operations with users and their roles. Thanks for this great series.
Sure Ray - That's exactly we will be doing in our upcoming videos.
Thanks! Waiting for the next lesson.
Thank you for the useful content
Please Also Make A Video on Adding Custom Colomns To Role Manager Like as Identity Manager
Nice explanation sir...
thank's, grate job man.
Thank you so much
Hi , I'm encountering the following error when following your solution: An unhandled exception occurred while processing the request.
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.RoleManager`1[Microsoft.AspNetCore.Identity.IdentityRole]' while attempting to activate 'Hybrid2.Controllers.AdministrationController'.
Please assist
did you manage to fix this?
services.AddDefaultIdentity(options => options.SignIn.RequireConfirmedAccount = true)
.AddRoles()
// just add this line into your startup and i think your problem is solved
.AddEntityFrameworkStores();
@@basepoint987 this helped thnks
Thank you Sir
I too have the problem Dieter Munnik is experiencing. I have added custom fields to AspNetUsers using an ApplicationUser class inheriting from IdentityUser as in your other videos. In Startup.cs I have added .AddRoles() but I then get errors referring to ViewData["Title"] and RoleName usage in the Razor View. After commenting these out the View opens but is of no use to add records of course. But my other controller actions using standard models to open CRUD Razor Views all have errors referring to the CreateRoleViewModel requiring a primary key. Any advice?
Extra info - it appears IdentityRole is missing a using directive or an assembly reference. Any help on where to add these would be appreciated especially as I find your examples the best
on the web.
@@amberleaf5577 i have the same error
@@amberleaf5577 i have the same error
I was waiting for this thank you
Ahaha... I was just googling about this like 30 seconds ago! 😂😂😂😂
Hello Ivandro - I am glad you found our video :-)
My roleManager object is always null any idea why that might be?
I missed you
IActionResult is not working can ActionResult work the same?
also i am using Mysql as a database so how do i pass the rolename to the database
No parameterless constructor defined for this object. But if i define parameter less constructor, parameter constructor is not called.
Same problem
how to create Roles from Seed
i want pdf material Plz
can you share the code