In this post, we will see how to resolve Unable to resolve service for type ‘Microsoft.EntityFrameworkCore.DbContext’ while attempting to activate [Type] Question: I am having issue in my current app to register a DbContext from type parameter; I’m trying to ...

In this post, we will see how to resolve Can’t drop unique index over NormalizedName using identity ef core Question: I’m trying to make the role unique per NormalizedName and other properties I’m using asp .net core 3.1 What I’m ...

In this post, we will see how to resolve Cannot able to deserialize HttpResponseMessage from XML to an Object in c# Question: I am getting the following xml response from the API endpoint: My target is deserialize this xml http ...

In this post, we will see how to resolve How to pass StartsWith() as a parameter to Expression.Call()? Question: Im trying to call StartsWith() function as an expression and pass a constant to it. Im new to c# and I ...

In this post, we will see how to resolve .Net Core CLI (dotnet myapp.dll) and Authentication Question: I am running my project from command line like below The application is running fine except it doesn’t set the user identity. I ...

In this post, we will see how to resolve How to keep the MemoryStream from being closed automatically Question: I have a memory stream in a function like so It seems like as soons the function returns, the memoryStream is ...

In this post, we will see how to resolve Why is .NET 6 minimal API returning JSON as a string and not as JSON? Question: I have a minimal API in .NET 6. In this API, I call a 3rd ...

In this post, we will see how to resolve How to convert object to Json in .net core 6 JsonConverter Question: Im trying to convert a object that looks like the object below into Json in .net core 6? Before ...

In this post, we will see how to resolve how to split the json value using c# Question: I am having a JSON file like this: here how to split the district – > id which has value “3650117d-e60e-4b1d-897e-df5d6728a6a6” thanks.. ...

In this post, we will see how to resolve Do I need to add all HttpClients? Question: If I use _httpClientFactory.CreateClient() in a singleton (no name for the client, I set it up when I use it) Should I add/specify ...