cornflourblue/aspnet-core-jwt-authentication-api

HTTP ERROR 404

vd3d opened this issue · 1 comments

vd3d commented

Hi,

When I run your sample I got a HTTP ERROR 404

The browser open at : http://localhost:58267/

I have also try with postman and everything looks empty ! I have put breakpoint but they don't stop !

Do you have a C# sample for the client too ? It will be helpful :-)

Hello vd3d,

You can make it work in 2 ways:

First (simple but only as long as your browser opens at http://localhost:58267)

  1. Go into Program.cs
  2. Change in line 17 his 4000 into your 58267

Second (the real solution)

  1. Rightclick WebApi, select properties
  2. Select Debug in the new screen
  3. Change Profile into WebApi
  4. Change App URL into http://localhost:4000
  5. Save
  6. Run but not with the default ISSExpress options but with the WebApi options

Good luck.

secondsolution