this post was submitted on 06 Feb 2025
27 points (100.0% liked)

technology

23544 readers
129 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 

This is for work and ASP.NET and IIS are the technologies my organization want me to use, so I can't change those.

So, I have an ASP.NET MVC webservice. When I start it up, I get the following message:

info: Microsoft.Hosting.Lifetime[14]
      Now listening on: http://localhost:5000/
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: [Path]

Path removed to avoid exposing sensitive info. I can access the site just fine on the server it's hosted on by going to http://localhost:5000/. However, it needs to be accessible from other devices. The machine it's hosted on also has an IIS server with a company website, and ideally, I should be able to access this webservice through a URL on the company site. I'm not sure how to do this, though. I've tried dropping it into the site's wwwroot folder and registering it as an application, but that didn't seem to work (I tried entering all of the obvious URLs from another device but only got 404s, and I can confirm that the site itself is accessible from that device).

you are viewing a single comment's thread
view the rest of the comments
[–] BeamBrain@hexbear.net 1 points 1 day ago* (last edited 1 day ago)

Alright, so I can confirm the following:

  • The ASP.NET service is registered to an application pool.
  • The pool it's in is started.
  • When I right click it in IIS and choose "Manage Application -> Browse", it opens the URL https://[Site Home]/[App Name]. However, I get the site's "page not found" redirect, so something's still missing.