Top "Asp.net-core-webapi" questions

Questions about ASP.

ASP.Net Core API always returns 401 unauthorized whenever I send a request with Bearer token included

I have an ASP .NET Core web api and I generate a JWT token for authorization purposes but whenever I …

c# authorization asp.net-core-webapi unauthorized
.NET Core 2 and SwashBuckle Swagger UI is not Displaying

I have followed a few tutorials and have gotten this to work at work but for some reason I am …

swagger swagger-ui swagger-2.0 asp.net-core-webapi .net-core-2.0
Visual Studio Container Tools requires Docker to be running before building, debugging or running a containerized project

I am working on .Net core Microservices. I installed Docker Toolbox containing docker cli and kitematics. After that i created …

docker visual-studio-2017 docker-compose microservices asp.net-core-webapi
Read request body twice

I am trying to read the body in a middleware for authentication purposes, but when the request gets to the …

asp.net-core asp.net-core-mvc asp.net-core-webapi
How to stop self-referencing loop in .Net Core Web API?

I'm having some issues which I'm guessing are related to self-referencing using .NET Core Web API and Entity Framework Core. …

c# asp.net-core-webapi
Mock IHttpContextAccessor in Unit Tests

I have a method to get header value using IHttpContextAccessor public class HeaderConfiguration : IHeaderConfiguration { public HeaderConfiguration() { } public string GetTenantId(IHttpContextAccessor …

c# unit-testing asp.net-core moq asp.net-core-webapi
Loading and registering API Controllers From Class Library in ASP.NET core

I am using ASP.NET Core 1.0.1. I have the following A class library that uses "Microsoft.AspNetCore.Mvc": "1.0.1" in order …

c# asp.net-mvc asp.net-core asp.net-core-mvc asp.net-core-webapi
Password reset token provider in ASP.NET core - IUserTokenProvider not found

Hello, I googled thoroughly but there is hundred examples from ASP.NET but nothing about ASP.NET Core. In order …

c# asp.net-core asp.net-identity-3 asp.net-core-webapi
IIS Express, ASP.NET Core - Invalid URI: The hostname could not be parsed

Back from my weekend and went to debug my web project which is an ASP.NET Core Web Api. It …

visual-studio iis-express asp.net-core-webapi