28
submitted 3 months ago* (last edited 3 months ago) by BeamBrain@hexbear.net to c/technology@hexbear.net

Here's what I've tried so far:

  • Made the default "ASP.NET Core API" project (the weather forecasting one) in Visual Studio
  • Built it and copied the contents of the build folder to C:\Users\[My username]\TestService
  • Ran the TestService executable. It says "Now listening on: http://localhost:5000"
  • Open my browser, enter the "http://localhost:5000" URL. I get a 404 error. This is all on the same computer.
  • Noticed that, under launchSettings.json, there were some other URLs listed, none of them localhost:5000. It gives 2 https URLs: https://localhost:7079 and http://localhost:5222. Both of these give "connection refused" errors.
  • At this point, I don't know what else to do

Please help I don't want to lose my job

EDIT: I was able to figure out what was going on. Solution is here. Thanks to hypercracker and everyone else who advised heart-sickle

you are viewing a single comment's thread
view the rest of the comments
[-] Chronicon@hexbear.net 4 points 3 months ago* (last edited 3 months ago)

Oof I know nothing about .NET but I'll look

~~One thing you might want to try is running visual studio as admin? (taken from the readme of this github)~~ Honestly idk if this is it because:

404 error means you did reach a listening web server, just that the url doesn't exist.

[-] GaveUp@hexbear.net 3 points 3 months ago* (last edited 3 months ago)

It's a missing endpoint implementation problem

The other comment mentioning this goes into a lot more details than mine

[-] Chronicon@hexbear.net 3 points 3 months ago

yeah they beat me by like a minute, didn't see that til I refreshed. It wasn't so much missing as he was browsing to the wrong url for the example code

[-] BeamBrain@hexbear.net 2 points 3 months ago* (last edited 3 months ago)

lol I got a Master's Degree without figuring out any of this shit. Not sure whether that says something about me or about American post-secondary education blob-no-thoughts

[-] Chronicon@hexbear.net 2 points 3 months ago

mostly the latter lol

Its not all bad, but they really don't mix the high-level theory and the practical skills very well in my limited experience. Maybe that's intentional.

this post was submitted on 05 Sep 2024
28 points (100.0% liked)

technology

23383 readers
240 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS