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

category: [ Uncategorized ] tags: [ IIS ] [ Skype ]
created: 21 Jan 2015 @ 09:22 modified: 24 Apr 2017 @ 13:57

I had some "Weird" things happening with IIS on one of my developer machines. After trouble shooting for a while I decided that was definitely not winning and removed all features from my pc that were even the slightest related to IIS, my pc required a restart so I did. When it came back I re-enabled all the features as I would normally do and then attempted to put my dev site in IIS. For some reason all the sites were stopped and when trying to start them I received the message

Internet Information Services (IIS) Manager
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

This was very weird as I was at this stage thinking that there shouldn't be anything running on port 80. I ran a Bing search and kb973094 - Error 0x80070020 when you try to start a Web site in IIS 7.0. Although I am using a later version of IIS I still gave it a read because most times things are similar or the same. In the resolution section it said I should run the below in Command Prompt

netstat -aon | find ":80"

With that I would get the output


and from there I needed to take the Process ID (Last Column) and look in Task Manager. When I opened Task Manager I noticed that the process that was using port 80 was Skype. After Ending the Skype process and doing an IIS Reset everything was back to normal.

I wanted to find out why Skype would be using port 80 and so I went into the settings and noticed a checkbox that was allowing it to use that port


After un-checking this box Skype has not taken control again =).


Gordon Beeming works at Derivco in the sunny city of Durban, South Africa. When he's not hacking away at a keyboard in Visual Studio he'll generally be relaxing with his family or hitting the black top getting in some mileage. He is a Visual Studio ALM Ranger and Visual Studio ALM MVP.

Follow me on Strava


I plan on writing a bunch of online tools and sharing the code for how I made those tools. If you have any feedback you can ping me on Twitter (@GordonBeeming) or mail me [email protected].