Event ID 2264 — IIS W3SVC Configuration

Applies To: Windows Server 2008

The Internet Information Services (IIS) World Wide Web Publishing Service (W3SVC) can be configured to collect performance data and do HTTP compression. If the W3SVC is configured to perform HTTP compression, a valid compression directory that resides on an NTFS volume must be specified.

Event Details

Product: Internet Information Services
ID: 2264
Source: Microsoft-Windows-IIS-WMSVC
Version: 7.0
Symbolic Name: W3_EVENT_COMPRESSION_DIRECTORY_INVALID
Message: The directory specified for caching compressed content %1 is invalid. Static compression is being disabled.

Resolve

Check the compression directory

IIS uses a directory where compressed versions of static files can be temporarily cached. The default directory is %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files. To improve file look-up times and security, IIS 7.0 creates a subfolder in this folder for each application pool, and a subfolder in each application pool folder for each compression scheme.

You can specify a different cache folder by using IIS Manager. This setting is made at the server level. The cache folder setting is stored in the directory attribute of the httpCompression section under system.webServer in the ApplicationHost.config file. If the directory location that is specified does not exist or is inaccessible, static compression will be disabled.

To resolve this error, check the currently configured value by using IIS Manager. If the specified directory does not exist, either create the directory, or specify a new location that does exist. To use IIS Manager, follow these steps.

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To modify the compression directory location by using IIS Manager:

  1. Click Start, click Control Panel, and then click Administrative Tools.
  2. Right-click Internet Information Services (IIS) Manager and select Run as administrator.
  3. In the IIS Manager Connections pane, click the computer name.
  4. In Features View, double-click Compression.
  5. Under Cache directory:, note the value that is configured.
  6. If the configured directory does not exist or is inaccessible, create the directory or specify a new one.
  7. In the Actions pane, click Apply.
  8. Close IIS Manager.

For more information about the httpCompression section, see IIS 7.0: httpCompression Element (IIS Settings Schema).

Verify

To verify that the World Wide Web Publishing (W3SVC) is configured correctly, you can:

  • Check that the World Wide Web Publishing service is running.
  • Test browse a Web page that uses W3SVC.

Verify that W3SVC is running

To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

To verify that the World Wide Web Publishing service is running, follow these steps:

  1. Open an elevated command Prompt window. Click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
  2. Type sc query w3svc, and press ENTER. The World Wide Web Publishing service is running if the state reported for the service is 4 RUNNING.

Perform a test browse

To perform a test browse by using IIS Manager:

  1. Click Start, click Control Panel, and then click Administrative Tools.
  2. Right-click Internet Information Services (IIS) Manager and select Run as administrator.
  3. In the Connections pane, expand the computer name.
  4. Expand Sites.
  5. Select the Web site or application that you want to verify.
  6. In the Actions pane, click the link under Browse.

IIS W3SVC Configuration

Internet Information Services (IIS) 7.0