ASP.NET MVC #11 - Create Role with ASP.NET Identity | FoxLearn

preview_player
Показать описание
Create ApplicationRole, ApplicationRoleManager, Create Role with ASP.NET Identity MVC 5 step-by-step using C# Entity Framework Code First for Beginners

The ASP.NET membership system was introduced with ASP.NET 2.0 back in 2005, and since then there have been many changes in the ways web applications typically handle authentication and authorization.

ASP.NET Identity is a fresh look at what the membership system should be when you are building modern applications for the web, phone, or tablet.
Рекомендации по теме
Комментарии
Автор

Gracias por su video, me ayudó hace dos años atrás y hoy igual. Thanks for your video. It helped me 2 years ago and today.

carlitosdan
Автор

Después de muchos tutoriales por fin uno que es simple y fácil de entender, gracias desde México.

IngChristoforo
Автор

if you get an error at the stge (just after 6 minutes) where it says "add-migration role" you should first type "enable-migrations" then try again. This was covered in previous tutorial.

Randoma
Автор

Delete button there's no action when clicked. I've tried adding this line in my code, but nothing happens yet my Friend. The code after the amendment is:

[HttpPost, ActionName("Delete")]
public async Task<ActionResult> DeleteConfirmed(string id)
{
var role = await
await
return
}

wdcunha
Автор

Thank for this magnificent training, i am following you step by step and i got very good experience from you lesson, but i have some problem when i execute project after this lesson it is worked correctly and i create the role but the role name does not appear in the grid and details also the delete does not working can you help me to know why that is happens please

mansouralmansour
Автор

I encountered two problems: the delete button does not delete. Edit, if I save with the same role name, I run into the yellow error page "because another entity of the same type already has the same primary key value", happens at "await Could you tell how to fix them? Thank you.

syncfuture
Автор

what a beautifull voice and very well eplained

germancillo
Автор

If I register a user with a duplicate email (email that has already been taken) it throws an exception value parameters cannot be null.

muhammedali
Автор

Very good contents. I followed entire path from your this tutorial and constantly gets an error - 'Object reference not set to an instance of an object.'

returned null.". This is in RoleController.cs. Please advise.

mukundthaker
Автор

But why are we using migration here> .Net identity has already create table for roles.

ohmkkargk
Автор

I get an error of :The current request for action 'Create' on controller type 'RoleController' is ambiguous between the following action methods:
System.Web.Mvc.ActionResult Create() on type
on type (this is related to the part where you delete the ApplicationDbContext in IdentityModels) .. please help

bigbeeforever
Автор

AdminLTE i guess its an alltime fav template for every dev out there

phoenixishere
Автор

How can i register ApplicationRoleManager in Unity?

mariqgrafova
Автор

I got an error that says "cannot assign void to an implicitly-typed variable" in the rolecontroller class i cant find the cause of it please help

timoteooo
Автор

I get error Attaching an entity of type failed because another entity of the same type already has the same primary key value. This can happen when using the 'Attach' method or setting the state of an entity to 'Unchanged' or 'Modified' if any entities in the graph have conflicting key values. This may be because some entities are new and have not yet received database-generated key values. In this case use the 'Add' method or the 'Added' entity state to track the graph and then set the state of non-new entities to 'Unchanged' or 'Modified' as appropriate.

Please give me solution, thanks you.

trantrongthien
Автор

How can i assign these roles to some emails in my database ?

abdogebril
Автор

how to fix 'Object reference not set to an instance of an object.'
?

darkmar
Автор

please help me! for error Invalid column name 'Discriminator'

tintin
Автор

I'm getting the error below when I try to edit one row then immediately save it without modifying anything. It does get through when I modify it though. Can someone help me thanks.

Attaching an entity of type failed because another entity of the same type already has the same primary key value. This can happen when using the 'Attach' method or setting the state of an entity to 'Unchanged' or 'Modified' if any entities in the graph have conflicting key values. This may be because some entities are new and have not yet received database-generated key values. In this case use the 'Add' method or the 'Added' entity state to track the graph and then set the state of non-new entities to 'Unchanged' or 'Modified' as appropriate.

joselitoaquino
Автор

sir how to Create Role with ASP.NET Identity using repository patterns

ahsanali
join shbcf.ru