I'm running into a strange issue while trying to run the visual studio 2019 using IIS express in Windows 10 professional. Its using the port number 50076. I've not been able to run the code as it indicates that the port number 50076 is used by other application. It shows the error
Process with an ID #### is not running
The PID #### is different number every-time. I must use the same port number in my project because of some requirement, so changing it to use the dynamic port number is not solution to this issue.
However, I cannot find any other application using the port number 50076 when I check using the steps below.
What I have tried:
I used the following steps to try to end the application using the port number or PID.
1. using the cmd,
i. checked the PID using the command tasklist
The PID is not shown at all.
ii. entered the command taskkill /PID <pid number> /f
It displays the error saying that the PID number is not found.
2. Checked the Task Manager -> Services
It also does not show the PID shown in the error.
3. Installed tcpview
and process explorer
to find the applications using
the port number 50076.
I cannot find any application using the port number 50076.
4. I restarted the computer and tried to run the code.
It still displays the same error.
Thank you in advance!