.NET Core 7 MVC how to İmplement Identity my project
(sorry for my bad english) I had previously created an MVC project and installed the dashboard. However, now I want to do Authentication and authorization with the Microsoft.Identity library. Should I delete the User and Role Entity classes that I have previously established?
Decimal format looks wrong in input fields on ASP.NET Core MVC. There is an error that says ” the field price must be number” though I enter correct
[]
I got Microsoft.AspNetCore.Mvc.Razor.RazorPage.Model.get returned null
**System.NullReferenceException: ‘Object reference not set to an instance of an object
Microsoft.AspNetCore.Mvc.Razor.RazorPage.Model.get returned null **
How to keep the iformfile, when an Exception occurs inside the Action method?
I wrote a program with asp.net core.
In this program, the user enters the required information about an article (such as the image and description text, etc.) and then presses the “upload article” button. The image of the article is uploaded and other information is also stored in the database. Normally everything works fine.
But
The problem happens when an exception occurs (or an exception is thrown) and I display the view again. When the view is displayed again, the value of “mainImage” corresponding to the image of the article becomes null.
Why I cant add users to their respective roles the AspnetUserrole table?
Im new to Asp.net core 7 mvc.I created a custom identity and roles and i want to assign roles to users during registration. However the roles are not being assigned to the respective users as my ASPNetUserRole table is empty. Below is the code.The users are being saved to the system but they are not being assigned the roles.