Run ASP.Net application on different port

anjali600
 
on Nov 09, 2021 09:39 PM
424 Views

I need to run my asp.net application on port 5000 because this port number is configured in my azure portal.

In order to put the Port number 5000, I changed the web tab in the project properties to run at 5000 

I also clicked on "Create Virtual directory" after putting the new port number.

After this, I changed the applicationhost.config file that exists in my solution folder and changed the bindings like this. I unloaded the project and changed the bindings and then loaded the project again.

<bindings>
    <binding protocol="http" bindingInformation="*:5000:localhost" />
    <binding protocol="https" bindingInformation="*:5000:localhost" />
</bindings>

The problem is no matter how many times, I change the binding information for https, it always changes back to 44347.

How can I keep the port to 5000 for https?

I am using Visual studio 2019 .net framework 4.7.2.

any help will be greatly appreciated.

Download FREE API for Word, Excel and PDF in ASP.Net: Download
arjunv
 
on Nov 09, 2021 11:52 PM