We have a program that listens on a port to receive info on running a report. Upon closing and reopening the program, we get an error saying that the port it uses is already in use. Looking at
netstat, we see that there are 9 instances of that port in the CLOSE_WAIT state and 1 instance of it in the listening state. The instance that's in the listening state says that it's owned by pid 488. Task Manager shows that there is no process with that ID and
taskkill says the same. The app is an in-house .NET application.
This is a production environment so we want to avoid restarting the machine. What might cause this and what can be done to fix it?