Unable to resolve service for type ‘Microsoft.AspNetCore.Identity.SignInManager’
When I inject SignInManager in ASP.NET Core 3.1, I get the exception message
When I inject SignInManager in ASP.NET Core 3.1, I get the exception message
I’m trying to set up Authorization using Identity for my React ASP.NET Core app. I’m following the ASP.NET Core docs: Docs
This is my first experience with lists in general and I have kinda complex scenario. I want to add an object of type Story that has a list of Sentences that can be added dynamically. Sentence has a one-to-one relationship with Image and another one-to-one relationship with Audio (that are optional to add). I managed to add the sentences list to the database along with the story object. But I have no idea where to start with the other two entities.
im currently trying to create a Controller in ASP.net core mvc with an optional parameter “id”.
Im fairly new to asp.net, I’ve tried to check other posts but nothing solved my problem.
I want user’s latitude and longitude to be updated on every page visited. In order not to duplicate things, I created a base controller where I also implemented the onActionExecuting which allows the method to run every time on every action from the derived controllers, but I can’t figure out how to pass the latitude and longitude parameters since they are only passed from the browser through an Ajax call.
I am trying to use a model I created (RoleAssignmentRecord) in my Index.cshtml file (in the Pages folder). Below is my Index.cshtml code:
I wrote some code in Asp .net Core
At the bottom line I have a button that when clicked on it is directed to the Action Method by JQuery
I localized my app for the German language, which works perfectly fine if I run the following command:
I am in need to add some security headers to my new ASP.NET Core 3.1 Web API. In MVC and webform I used to do with below codes in web.config file:
You can further limit access by applying additional role authorization attributes at the action level: