Relative Content

Tag Archive for c#asp.netasp.net-web-api

Middleware order not respected ASP.NET Web API

So i ‘m using two custom middlewares . One that validates the JWT Token on every request where it needs to be validated , and the one for the /admin routes . The problem is , even tho i specified the order in my Program.cs and the admin middleware is after the jwtTokenmiddleware , the admin one is executed first . Why is that ?

Cannot run ASP.NET web API outside VS

I’m creating a desktop app for Windows only and using Electron with ASP.NET Web api as an interface for a COM reference to antoher program. This is working great for me but when I want to launch the API outside VS (executing the binary) I get this error: