Top "Asp.net-core-2.1" questions

Use this tag for questions specifically related to ASP.

How to seed an Admin user in EF Core 2.1.0?

I have an ASP.NET Core 2.1.0 application using EF Core 2.1.0. How do I go about seeding the database with Admin …

c# asp.net-core asp.net-core-2.1 ef-core-2.1
The application completed without reading the entire request body, .net core 2.1.1

I have created a user register controller to register users with repository design pattern. My controller looks like this. [Route("…

c# .net-core asp.net-core-webapi asp.net-core-2.1
IDX20803: Unable to obtain configuration from

I know this question has been answered, but I don't understand what people exactly do (about certificates, ssl) and they …

jwt azure-active-directory asp.net-core-2.1
Different Minimum Level Logs Serilog

Is there a way to differentiate what level is logged between the different loggers for Serilog? I want to be …

c# asp.net-core serilog asp.net-core-2.1
How to mock the new HttpClientFactory in .NET Core 2.1 using Moq

.NET Core 2.1 comes with this new factory called HttpClientFactory, but I can't figure out how to mock it to unit …

c# unit-testing moq asp.net-core-2.1 httpclientfactory
How to run BackgroundService on a timer in ASP.NET Core 2.1

I want to run a background job in ASP.NET Core 2.1. It has to run every 2 hours and it will …

c# asp.net-core background-process asp.net-core-2.1 background-service
JavaScriptSerializer is not allowed in .net core project?

I am working in .net core project. I want to serialize the objects using JavaScriptSerializer. JavaScriptSerializer Serializer = new JavaScriptSerializer(); I …

asp.net-core-2.1 jsonserializer json-serialization
ASP.NET Core 2.1 - IdentityUser Issue - Cannot create a DbSet for 'IdentityUser' this type is not included in the model for the context

I have upgraded my code from ASP.NET Core 2.0 to Core 2.1. I created a new Core 2.1 project and moved my …

c# asp.net-core-2.1
ASP.NET core 2.1 session

In ASP.NET core 2.1, I cannot access session variables. While debugging I have noticed that in every request the session …

asp.net asp.net-core-2.1
How can I migrate from ASP.NET Core 2.1 to 2.2 easily?

I have a project which made by asp.net core 2.1, and now I wanna to migrate to the 2.2 version. I …

asp.net-core asp.net-core-mvc asp.net-core-2.1