Top "Asp.net-core-2.2" questions

Use this tag for questions specifically related to ASP.

Send email with .NET Core 2.2

In MVC ASP.NET you can set the smtp configuration in the web.config file like this : <system.net&…

c# sendmail asp.net-core-2.2
ASP .Net Core with Razor Pages Vs Angular for UI

Our enterprise application is a massive (1000+ pages) app and primarily it is glorified data entry application. There is no major …

angular asp.net-core-2.2 blazor
ANCM InProcess startup failed because of invalid runtimeconfig.json

The application is deployed as an (32-bit, .NET Core 2.2) App Service on Azure. It works fine when using the standard …

c# asp.net-core asp.net-core-2.2
Prevent redirect to /Account/Login in asp.net core 2.2

I am trying to prevent the app to redirect to /Account/Login in asp.net core 2.2 when the user isn't …

asp.net-core-2.2
Asp.Net core Tempdata and redirecttoaction not working

I have a method in my basecontroller class that adds data to tempdata to display pop-up messages. protected void AddPopupMessage(…

asp.net-core-2.2 tempdata redirecttoaction
Authentication fails with "Unprotect ticket failed" for Asp.Net Core WebApi

When I use Bearer token with an AspNetCore controller protected with [Authorize], I get the log message: info: Microsoft.AspNetCore.…

c# authentication oauth-2.0 asp.net-core-identity asp.net-core-2.2
Get ErrorMessage from Response in Netcore 2.2 Web API

I call Register method with empty username and password. So I received this result: { "errors": { "Password": [ "The Password field is …

c# asp.net-core asp.net-core-2.2
How to read request body multiple times in asp net core 2.2 middleware?

I tried this: Read request body twice and this: https://github.com/aspnet/Mvc/issues/4962 but did not work. I …

c# middleware asp.net-core-2.2
Get the Controller Name and Method Name in ASP.NET-Core 2.2 Controller

I know that in asp.net-core 2.2, I can get the action name as follows: ControllerContext.ActionDescriptor.ActionName but I am …

c# controller httpcontext asp.net-core-2.2
How to scaffold views and stored procedures from SQL Server to ASP.NET Core 2.2 project?

I have an existing database in SQL Server that I need to connect to ASP.NET Core 2.2 project with EF …

entity-framework-core asp.net-core-2.2 asp.net-core-scaffolding