IIS: The process cannot access the file because it is being used by another process

When you want to browse web site hosted in IIS, you may get sometimes page not found error.  If you try to start web site from IIS admin manager you may get this message such as The process cannot access the file because it is being used by another process.

For example, when I browse *.aspx page using http://localhost/test.aspx then it shows page not found error, and when try to start web site  from IIS7 manager then it shows this message.

Why this is shown is because any other process listening to port 80, since http  by default listen to port 80 it conflicts. So one of the ways to fix this is that

  1. Find Process ID that is using port 80
    1. Start -> Run -> cmd
    2. write command – netstat -ano
    3. Find the Process ID which is listening on port 80
    4. FindProcessIDPort80

      FindProcessIDPort80

       

  2. Open Task Manager and Select the Process
    1. View -> Select Columns -> Process ID
    2. Find the Process ID that listening port 80
    3. SelectProcessIDColumn
  3. Kill the process listening on Port 80

  1. Restart IIS and Start Website
  2. That’s all

References:

  1. http://jalpesh.blogspot.com/2010/03/iis-error-process-cannot-access-file.html
About these ads

About M Moniruzzaman
A passionate software engineer, have been developing applications on various platforms such as Android, iPhone, .Net (C#) technologies and web based ASP.NET, PHP, JavaScript, jQuery technologies for more than 5 years. Especially I have expertise on developing applications for Android and iPhone, as well as service oriented, client-server based applications where clients will be reside on Android/iPhone that communicate with WCF(.NET) service hosted on server. I have completed certification in Microsoft Certified Professional Developer (MCPD) on .Net 4 . I have completed my graduation in -- B.Sc in Computer Science and Engineering, ShahJalal University of Science and Technology, Bangladesh. Thanks, M. Moniruzzaman (Zaman)

One Response to IIS: The process cannot access the file because it is being used by another process

  1. Ehsan says:

    Excellent, much appreciated for your pinpoint resolution, it fixed my problem.

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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: