jump to navigation

Unable to Start Web Site on IIS – “Process can not access the file because It’s being used by another process”. How to resolve ? July 20, 2010

Posted by Abhijit Jana in ASP.NET 4.0, General, IIS.
Tags: ,
trackback

I was trying to run one of my local IIS hosted site I got page not found error. I was quite surprised to see that error because the site was up and running few hours back. I opened the IIS and found that my Site Application was in stopped mode. I started the web application and got the error message displayed below

Problem : Error message “Process can not access the file because It’s being used by anther process”  while starting the web application from IIS.

Investigation and Resolution:  Earlier my web site was running on the default IIS port ( Port 80 ).  From the error message it’s clear that port 80 is being used by some other process or some one is blocking it.

I changed the default web site port which was 80 to some unused port (8087). To achieve this right click the application and then click Edit Binding.

7-19-2010 12-18-17 PM

After this port change I started the site again and it started.  So, the main problem as identified was Port 80 being used by some other process.

I have already discussed the resolution process, which is to change the port. But, I want to my Site to run on Port 80, so I have to identify which process is blocking the IIS Port 80. To check this I used netstat command which displays the details of port along with the process ID.

I found that Process ID with 3368 is blocking the port 80. I opened the Task manager and added the Process ID Column from setting and found one of my chatting application using the Port 80 :( .

Shout it

Comments»

1. DotNetShoutout - July 20, 2010

Unable to Start Web Site on IIS – “Process can not access the file because It’s being used by another process”. How to resolve ? « Abhijit’s World of .NET…

Thank you for submitting this cool story – Trackback from DotNetShoutout…

2. Kunal Chowdhury - July 20, 2010

Oh great man. Finally you fixed the problem.
I will check it in my PC soon.

Abhijit Jana - July 20, 2010

great !

3. Ajith - March 30, 2011

Thank you :)

4. bhupendra - February 8, 2012

i am not able to start default web site after change default port (80).

5. sdgsg - April 26, 2012

ARRGHHH death to Skype.exe eating port 80 and 443
thanks for the netstat quickie


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,265 other followers