The process cannot access the file because it is being used by another process (Exception from HRESULT: 0x80070020)

Cannot restart Website. The process cannot access the file because it is being used by another process (Exception from HRESULT: 0x80070020).

Did you face this error during website starting in IIS.

Root cause of this  issue is binding conflict. There is another application that is using port 80. If you change the bindings for the default website to 8080 [for testing purpose] it will work.

Now what you can do you have to find out the process which is running of 80 port.

STEP1 :- Open CMD

STEP2 :- Now type NETSTAT -ano

You will see running process on port 80.

Now open task manager and find out running process with this id. After that kill that process. Now you will be able start your website in IIS.

Hope this article is helpful.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *