The project is ASP.NET Core MVC, .NET 6. I'm trying to seed a role if it's not there yet and create a user that will have this role. I tried every way ...
The project is ASP.NET Core MVC, .NET 6. I'm trying to seed a role if it's not there yet and create a user that will have this role. I tried every way ...
I have a custom user role class with CompanyId as a foreign key. So I could create user roles relative to the company. That means Administrator role o ...
I have sms backup app that backup and restore SMS only so when i restore sms I need to set default Massage App. then after Restore i don't need to sta ...
Like the title said there is an error with the roleManager here's the web.config code: Here's the file placement here's GetRoleForUser here i ...
Im able to create roles using role manager and add user to a role using UserManager.AddToRoleAsync But when using method UserManager.RemoveFromRoleAsy ...
Scenario: I have an Asp.net core program that using identity authentication. Goal: I want to get number of users that have specific role like this: ...
InvalidOperationException: Processing of the LINQ expression 'Except I am using the Identity system in ASP.NET core 3.0 to make a website. I have a l ...
I've been reading the dotnet core Authentication Documentation and trying to do some examples. I am able to create new users, but I ran into an issue ...
I've created an small fleet management app and with the help of tutorials and materials I've found on the Microsoft website and other. I managed to i ...
I am programming an WebApp with MVC5 and I will check if a User is in a specified Role. Therefore I have tried to use User.IsInRole("Role") but it t ...
This is my first time using RoleManager, and I am having a problem adding a username to a role. The goal is to check if the user (who is currently log ...
I am new to Azure integration with web app. Can I know is there any tutorial available to assign role to user that login with Azure AD? Such as UserMa ...
I have following methods to get the list of roles stored in AspNetRoles then I get it in view as follows but once I load the page I'm getting ...
I'm getting 3 errors Using the generics type 'RoleManager' TRole,TKey requires 2 type arguments at following line of my Create method in asp.ne ...
In my web config file I gave written this block of code I am getting this error Description: An error occurred during the processing of a confi ...
I am trying to upgrade an MVC 5 application to MVC 6. The only thing in the 5 application is the ability to administrate Users and Roles. It is a "tem ...
Additional information: An error occurred while attempting to initialize a System.Data.SqlClient.SqlConnection object. The value that was provided ...
I have a ASP.NET 4.0 web application that uses Windows Authentication against AD and a SQL Server for Role management. Basically, I want all users w ...
I have enabled role manager in web.config, but am still getting the error: System.Configuration.Provider.ProviderException : The Role Manager feature ...
When I try to get roles from RoleManager, I get list of very strange list of objects, How I retrieve my roles: I didn't have this problem befor ...