Saturday, February 23, 2013

0x80070020- Cannot Start Web Site, The process cannot access the file because it is being used by another process

Error:
Cannot Start Web Site
There was an error while performing this operation.
Details:
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

More details:
As we don’t get more information from the above error message, we have to use windows event log to obtain more details
If you open event log and navigate to system log, you can obtain the following two log entries

Event Log 1
Unable to bind to the underlying transport for [::]:80. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine.  The data field contains the error number.
Event Log 2
The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://*:80/ for site 1. The site has been disabled. The data field contains the error number.

Fix:
Port 80 is already is in use.
We can change the IIS web site configuration to use another port.
We can identify the program which uses port 8 using the following command
> netstat –a –b
After that we can
  • configure that program to use another port
  • configure IIS to use another port
  • stop the program temporarily and start the IIS web site
  • Uninstall the program permanently if not required, and start the IIS web site.


















No comments:

Post a Comment