Microsoft KB Archive/242285

From BetaArchive Wiki
Knowledge Base


Access Violation in Inetinfo.exe with WebProxyCache Event ID 113

Article ID: 242285

Article Last Modified on 3/24/2004



APPLIES TO

  • Microsoft Proxy Server 2.0 Standard Edition



This article was previously published under Q242285

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry


SYMPTOMS

When you are using Microsoft Proxy Server 2.0 with Microsoft Internet Information Services (IIS) 4.0, Inetinfo.exe may cause an access violation error when you log on to the server, start Internet Explorer, or try to start the Web Proxy service. When this problem occurs, you may receive an error message that is similar to one of the following:

Access Violation 0xC0000005 at address 0x646027ee

Access Violation 0xC0000005 at address 0x53b86455

Access Violation 0xC0000005 at address 0x63801e9e

When these errors occur, an event that is similar to the following appears in Event Viewer:

Event ID: 113
Source: WebProxyCache
Description: Web Proxy cache failed to initialize the URL cache on disk.

In addition, when you click the Caching tab in the Properties dialog for the Web Proxy service, you may receive a message that is similar to the following:

The Web proxy service disk cache utilization failed. You cannot configure the cache parameters.

CAUSE

These error messages may occur for one or more of the following reasons:

  • The paths that reference the URL Cache folders may be incorrect or may not be present in the registry.
  • The URL Cache folder or other folders that are used by Proxy Server 2.0 may have incorrect permissions.
  • The contents of the URL Cache folder may be corrupted.


RESOLUTION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

You may have to perform one or more of the following steps to resolve this issue:

  1. Modify or correct the registry to refer to the correct location and path of the URL Cache folder and its subfolders:
    1. Using Registry Editor, locate the following registry location:

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\

    2. Add the Paths key by clicking Add Key on the Edit menu so that the following registry key exists:

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\Paths

    3. Add the following keys to the Paths key: Path1, Path2, Path3, Path4, and Path5. When you are finished, the following keys should exist:

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\Paths\Path1

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\Paths\Path2

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\Paths\Path3

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\Paths\Path4

      HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Pcache\Parameters\Paths\Path5

    4. Add the following values to the Path1, Path2, Path3, Path4, and Path5 keys by clicking Add Value on the Edit menu:

      CacheLimit:REG_DWORD:0x14

      CachePath:REG_SZ:C:\urlcache\dir1

    0x14 is hexadecimal for 20 and results in a 20-megabyte (MB) cache size for each folder. Adding 0x14 to each Path folder results in a 100-MB URL cache. Determine the size that is necessary for your cache limit, divide by 5, and use that value for each Path key.

    C:\Urlcache\Dir1 should reflect the actual path of your Urlcache\Dir1 folder. The Path1 key should contain the path of Dir1, Path2 should contain the path of Dir2, and so on through the Path5 key.

    NOTE: The recommended minimum cache allocation is at least 100 MB plus 0.5 MB for each Web Proxy client.

    If these keys already exist, correct the C:\Urlcache\Dir1 through C:\Urlcache\Dir1 paths if the value is incorrect for your installation of Proxy Server. To correct this value using Regedt32, double-click the value, type the correct path, and then click OK.

  2. Modify the permissions on the URL Cache folder and the root drive to allow the correct permissions to the URL cache:
    1. Use Windows Explorer to locate the drive containing the Urlcache folder. Right-click folder icon, and then click Properties. On the Security tab, click Permissions. Confirm the permissions and modify them if necessary so that at least the following permissions are given to the root of the drive containing the Urlcache folder:

           Administrators     Full Control
           System             Full Control
                              

      On BackOffice SBS 4.5 the minimum permissions set by a default installation should at least be:

      Administrator: Full Control
      System: Full Control
      Creator Owner: Full Control

    2. Using Windows Explorer as indicated in the previous step, confirm that at least the following permissions are given to the Urlcache folder:

           Administrators     Full Control
           System             Full Control
           Creator Owner      Full Control
           Everyone           Change
                              

      On BackOffice SBS 4.5 the minimum permissions set by a default installation should at least be:

      Administrators: Full Control
      System: Full Control
      Creator Owner: Full Control
      Everyone: Change
      Server Operators: Change

    After you confirm the permissions for the Urlcache folder, check the other permissions for the NTFS file system that are required for Proxy Server 2.0, such as the permissions for the Proxy and the Inetsrv folders.

    For additional information about the required NTFS permissions, click the article number below to view the article in the Microsoft Knowledge Base:

    235874 NTFS Permissions Required for Proxy Server 2.0

  3. Remove corrupted URL cache files:
    1. Stop the Web Proxy service. To do so:
      1. Click Start, point to Programs, point to Microsoft Proxy Server, and then click Microsoft Management Console.
      2. Click the plus sign (+) next to Internet Information Server to expand the list.
      3. Click the plus sign (+) next to your computer name.
      4. Right-click Web Proxy, and then click Stop.
    2. Using Windows Explorer, delete the contents of the Urlcache folder, including all subfolders. Do not delete the Urlcache folder itself.
    3. Start the Web Proxy service by right-clicking its icon in Microsoft Management Console, and then clicking Start.


Keywords: kberrmsg kbenv kbprb KB242285