We created an SSL certificate for our server and when we want to start IIS we get this error:
The process cannot access the file because it is being used by another process.
Port 443 seems to be in use. How can I solve this? Or How can I learn why port 443 in being used?
netstat -aon will show which process is using the file. In my case it was Skype but it could be any process that uses it.
Disabling 'allow port 80 for incoming connections' in skype did the trick for me.
Marc B's comment is deserving of an actual answer, so I will paste it here:
Use
netstat -b -a
in an elevated privilege shell. It'll show all active ports and the processes attached to them. You can add-o
if the process holding on to your port is svc.exe or another multi-instance executable (thanks to Mike K for the comment).I've seen this happen on my development box where Skype actually takes over port 80 and/or 443. To turn off and disable Skype usage of and listening on port 80 and port 443,
it may port issue. previously my port was 80 now i change it with 8080 then everything works fine for me.
I just closed the skype, resolved the issue.
In my case -- we had no skype and the netstat didn't return ANY other processes using port 80 or 443. A manual restart from an elevated command prompt did not resolve the issue either. Ended up having to restart the box to clear up the issue.
I changed the default website to port 88 just in case that added to the issue.