"The process cannot access the file because it is being used by another process."
The System's log error looks like this:
Log Name: System
Source: Microsoft-Windows-IIS-W3SVC
Event ID: 1004
Description: The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://*:80/WebApps for site 1. The site has been disabled. The data field contains the error number.
To find out what is causing the issue, I scanned my network for an applications listening on ports 80 and 443 by executing the following commands :
netstat -aon | find ":80"
netstat -aon | find ":443"
Here is what I got as a result:
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 10024
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 10024
When I checked my task manager, I found that this process ID 10024 belongs to Skype.
Having this information, the fixing was a matter of minutes:
- Within Skype, select Tools from the top menu
- Select Options
- Select Advanced from the left sidebar
- Select Connection from the Advanced sub-menu
- Uncheck the Use port 80 and 443 as alternatives for incoming connections checkbox