Adsense

Friday, October 16, 2009

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

In IIS7 I was trying to start my Default Web Site and was getting the following error screen.
IIS - Skype - Error
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
A quick Google search turned up the following Microsoft Support Topic. Ok. Lets take a look at netstat and see what might be causing problems. Open a command prompt ([Windows Key + R] and enter cmd) and enter the command. After running netstat -ano, I noticed that there was indeed another process (with a process id of 796) accessing port 80. (You can enter netstat /? to see what the –ano flags are doing.)
netstat
The offending process that is using port 80 has a process id of 796. Now, how to find out what that process 796 is?
Using the tasklist command will show a list of all processes running in windows. You can use the /fi flags to filter the results. In this case I’m using a filter that will only show processes with a PID that equals 796. tasklist /fi “PID eq 796”
Tasklist Filter Command
The process with process id is Skype. Makes sense that it would be using port 80. I promptly closed down Skype and was then able to start my Default Web Site in IIS Manager. Hope this helps someone.

21 comments:

BlackTigerX said...

oh, and I would recommend using TcpView to find out what applications have ports open

Anonymous said...

Aaaaaaaaaaaaaaargh. *pound*head*on*table* Er, thanks.

Naveed Anjum said...

Awesome work man. I was facing the same problem, Now i solve it..

Sangeetha said...

Thanks a lot!. I had the same issue and worked at once.

Anonymous said...

thanks it worked!!!!
you are awesome!.

Rich said...

Thanks, you are a champ!

Anonymous said...

Thanks!

Anonymous said...

Thank you =)

Anonymous said...

netstat -aon | find ":80"

E u g said...

Extremely useful, thanks Paul Fox

Anonymous said...

Skype has an option in the Advanced options to use port 80 to get around firewalls. Disable that and it shouldn't happen again!

Ciprian Lucanu said...

Thanks!

Anonymous said...

OK, so I have a problem. I don't have skype, and the only process listening on port 80 is the system process. I have other IIS sites running without a problem. Only when I go to start my asp.net site does it give me problems. Any ideas?

Paul Fox said...

Can't think of anything else that might be causing this specific error if not the conflict with Skype. Wish I could be of more help, but it would be difficult without more specific about your environment/configuration.

Good luck in your search though.

Unknown said...

Thanks.. very helpful ....
Bakht Ali

Unknown said...

had seemingly same problem trying to install the new launcher for Lineage 2 (as in same error)

-5006 : 0x80070020

Sudhansu said...

Thanks !!

ASR said...

Thanks, Solved me the problem

Anonymous said...

For windows 8:
tasklist /v /fi “PID eq 796”

pubu

Anonymous said...

For windows 8:
tasklist /v /fi “PID eq 796”

pubu

Vipul said...

Very helpful thanks. I just tried to explore it more. Find the below detail -

Above error is coming because default port 8080 is not assigned to system. So default website under IIS manager is not able start.
To Resolve the above error i followed the below steps, and it worked for me.

Step 1 - Go to run, type cmd, command prompt will appear.

Step 2 - We need to find which process is using the default port 8080. To find this type the below command in your command prompt. "Netstart -ano"

Step 3 - As per above screen the port 8080 is using by the process 3152. Now we need to find which application is assigned for process id 3152.
Type "tasklist /fi “PID eq 3152” in your command prompt and see the result.

Step 4 - Start your default website in IIS manager. It will work.

For more detail check the below link -
http://vsstack.blogspot.in/2013/09/iis-hresult-0x80070020-process-cannot.html