Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1628

Port 5001 doesn'r run after deployment

$
0
0

I'm developing Asp.Net project recently upgraded from net 6 to net 9, in VS 2022.Since few days for unknown (to me) reasons, I can't run the app on localhost 5001 port, after deployment (to a local folder).

When I use details below in appsettings.json, deployed application runs on port 5001 properly:

"Kestrel": {"Endpoints": {"Http": {"Url": "http://127.0.0.1: 5000"      },"Https": {"Url": "https://localhost: 5001"      }}}

but then I can't launch it from VS. I didn't make any manual changes to launchsettings.json or program.cs, I use app.UseHttpsRedirection() Is there any possibility to set default settings for development and deployment? I experienced no troubles at NET6, and had nothing to do with ports at all.


Viewing all articles
Browse latest Browse all 1628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>