Top "Asp.net-core-webapi" questions

Questions about ASP.

Why am I getting the error "Cannot instantiate implementation type" for my generic service?

I have a generic repository that I have been instantiating right in my WEB API Controller no problem for a …

c# dependency-injection asp.net-core asp.net-core-webapi
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
Bearer error="invalid_token", error_description="The signature is invalid"

I have a angular application that request a token from azure. The login went well and I get a token. …

.net-core azure-active-directory asp.net-core-2.0 asp.net-core-webapi
Asp.Net Core Web API app: how to change listening address?

I write simple Asp.Net Core WebAPI 2.0 application, it works on my local machine. But i want to deploy it …

ubuntu asp.net-core asp.net-core-2.0 asp.net-core-webapi kestrel
How can i configure JSON format indents in ASP.NET Core Web API

How can i configure ASP.NET Core Web Api controller to return pretty formatted json for Development enviroment only? By …

c# asp.net asp.net-core json.net asp.net-core-webapi
ASP.NET Core with EF Core - DTO Collection mapping

I am trying to use (POST/PUT) a DTO object with a collection of child objects from JavaScript to an …

c# asp.net-core entity-framework-core automapper asp.net-core-webapi
How to get content value in Xunit when result returned in IActionResult type

I have a unit test project using Xunit and the method we are testing returns IActionResult. I saw some people …

c# unit-testing asp.net-core xunit asp.net-core-webapi
What is the best practice in EF Core for using parallel async calls with an Injected DbContext?

I have a .NET Core 1.1 API with EF Core 1.1 and using Microsoft's vanilla setup of using Dependency Injection to provide …

entity-framework asynchronous dbcontext asp.net-core-webapi
Correct way to return HttpResponseMessage as IActionResult in .Net Core 2.2

In .Net Core 2.2. I am creating a API Controller that routes the request to another Http endpoint based on payload. […

asp.net-core .net-core asp.net-core-2.0 asp.net-core-webapi coreclr
Get image from wwwroot/images in ASP.Net Core

I have an image in wwwroot/img folder and want to use it in my server side code. How can …

c# asp.net-core asp.net-core-mvc asp.net-core-webapi