IIS error about SP: The process can't access the file because it is being used by another proce

Source: Internet
Author: User
Tags microsoft iis

You receive a "the process cannot access the file because it is being used by another process" error message when you try to start a web site in the Internet Information Services MMC snap-in

 

Symptoms

When you right-click a web site in the Microsoft Internet Information Services (IIS) Microsoft Management Console (MMC) snap-in, and then you click
Start, The Web site does not start and you receive the following error message:

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

This problem occurs on a computer that is running Microsoft IIS 6.0. This problem also occurs on a computer that is running both Microsoft IIS 7.0 and Windows Vista.

Additionally, the following two events may be logged in the System Event Log on the Microsoft Windows Server 2003-based computer that is running IIS:

Event Source: w3svc
Event ID: 1004
Description: cannot register the URL prefix 'HTTP: // *: 80/'for site '1'. The site has been deactivated. The data field contains the error number.

Event Source: HTTP
Event ID: 15005
Description: Unable to bind to the underlying transportIPaddress: 80. The IP listen-only list may contain a reference to an interface which may not exist on this machine. The data field contains the error number.

NoteIPaddressIs the IP address of the computer that is running IIS.

 

Cause

Typically, this issue occurs when one or more of the following conditions are true:
  • Another process is using port 80 or port 443 on the computer that is running IIS. By default, IIS uses port 80 as the default TCP port and port 443 for Secure Sockets Layer (SSL ).
  • Thelistenonlylist

    Registry subkey is not configured correctly on the computer that is running IIS.

Resolution

To resolve this issue, you must use the netstat.exe utility at the command line to see if another process is using port 80 or port 443.

If port 80 is not being used, you must then examine

Listenonlylist

Registry subkey on the computer that is running IIS. To do this, follow these steps.

ImportantThis section, method, or task contains steps that tell you how to modify the registry. however, serious problems might occur if you modify the Registry incorrectly. therefore, make sure that you follow these steps carefully. for added
Protection, back up the registry before you modify it. then, you can restore the registry if a problem occurs. for more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge
Base:

322756

Http://support.microsoft.com/kb/322756)

How to back up and restore the Registry in Windows

  1. Log on the computer that is running IIS by using an account that has administrative permissions.
  2. ClickStart, ClickRun, Type
    CMD, and then clickOK.
  3. At the command prompt, type the following command: netstat-ano

    NoteFor more information about the netstat.exe utility, type the following command at the command prompt:

    Netstat /?
  4. If the ports are not being used, you must examine thelistenonlylist

    Registry subkey on the computer that is running IIS. To do, this follow these steps:

    1. ClickStart, Click
      Run, Type regedit, and then click
      OK.
    2. In Registry Editor, locate the following registry subkey: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ HTTP \ Parameters \ listenonlylist
  5. Make sure that thelistenonlylist

    Subkey contains valid IP addresses. If

    Listenonlylist

    Subkey contains an IP address that is not valid, you must remove the IP address or change

    Listenonlylist

    Subkey entries to reflect a valid IP address.

    NoteBy default, if

    Listenonlylist

    Subkey is not present, an IP address of 0.0.0.0 is used. However, if

    Listenonlylist

    Subkey is present and the 0.0.0.0 IP address is listed, no other IP address shocould be listed. If other IP address are also listed, the other IP addresses must be deleted.

  6. Before you modify thelistenonlylist

    Subkey, you must stop the HTTP service on the computer that is running IIS. To do this, follow these steps:

    1. ClickStart, Click
      Run, Type cmd, and then click
      OK.
    2. At the command prompt, type the following command, and then press Enter: net stop HTTP

      The following message appears:

      The following services are dependent on the HTTP service
      Stopping the HTTP service will also stop these services.

      World Wide Web Publishing Service
      HTTP SSL

      Do you want to continue this operation? (Y/n) [N]:

      Press Y, and then press Enter.

      NoteOn Vista, the list of services in this message also provided des the following services:

      • UPnP Device Host
      • SSDP Discovery
      • Print Spooler
      • Function discovery resource publication
  7. To remove the IP address that is not valid in Registry Editor, right-click the string value that contains the IP address, and then click
    Delete. To modify the IP address value, right-click the string value that contains the IP address, and then click
    Modify.
  8. InEdit stringDialog box, type the correct IP address in
    Value DataBox, and then click
    OK
    .
  9. Close Registry Editor.
  10. You must now restart the HTTP service on the computer that is running IIS. To do this, follow these steps:
    1. ClickStart, Click
      Run, Type cmd, and then click
      OK.
    2. At the command prompt, type the following command: Net start HTTP
  11. You must also restart the http ssl Service and the World Wide Web Hing service on the computer that is running IIS. To do this, follow these steps:
    1. ClickStart, Point
      Administrative Tools, And then click
      Services
      .
    2. In the services MMC snap-in, right-click the following services, and then click
      Start:

      • World Wide Web Publishing Service
      • HTTP SSL
    3. Close the services MMC snap-in.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.