Relative Content

Tag Archive for c#asp.net-core-webapi.net-8.0

Migrated Web API from .NET Core 2.2 to .NET 8 and login no longer works

I migrated an ASP.NET Core 2.2 Web API to .NET 8.0 by copy-pasting the code into an empty .NET 8.0 project and mostly resolved all the build errors by installing the needed dependencies etc. I got the Web API to launch, but trying to login to the front-end that is connected to the Web API doesn’t seem to work. I just receive error 500 HTTP response failures.

ASP.NET Core 8 Web API : React.js API 400 bad request

I am working with an ASP.NET 8 Core Web API and React Framework and I am trying to test my API using Postman for sending data to database. After running the commands dotnet run for my backend app and npm start for the React frontend, I get this error: