Welcome to Management Pack Wiki! Your documentation pro for SCOM Management Packs
1 comment(s) Post a comment

The directory specified for caching compressed content is invalid Rule

  • ID:  Microsoft.Windows.InternetInformationServices.2008.The.directory.specified.for.caching.compressed.content.is.invalid
  • Description:   
  • Target:  IIS 7 Web Server
  • Enabled:  On Essential Monitoring

Overridable Parameters

Parameter Name Default Value Description Override
Priority 1  
Severity 1  

Run As Profiles

Name
Default

Rule Knowledgebase

Summary

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.

Causes
This rule does not contain any causes.
Resolutions

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 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 modify the compression directory location by using IIS Manager:

  • Click Start, click Control Panel, and then click Administrative Tools.

  • Right-click Internet Information Services (IIS) Manager and select Run as administrator.

  • In the IIS Manager Connections pane, click the computer name.

  • In Features View, double-click Compression.

  • Under Cache directory:, note the value that is configured.

  • If the configured directory does not exist or is inaccessible, create the directory or specify a new one.

  • In the Actions pane, click Apply.

  • Close IIS Manager.

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

External References
This rule does not contain any external references.

See Also for Windows Internet Information Services Management Pack


Downloads for Windows Internet Information Services Management Pack

nag
Posted : Sunday, April 28, 2013 2:53:16 PM(UTC)

Comments: 1

I got this error after adding this to my web.config file (Azure project)

Code:
<staticContent>
    <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
</staticContent>


(It results in a web.config error since SVG files are already present in applicationHost.config)

The error message is clearly misleading. I fixed the problem by reverting web.config to a previous version.

I made a short blogpost about it here: http://blog.degree.no/2013/04/the-directory-specified-for-caching-compressed-content-is-invalid-static-compression-is-being-disabled/
Post a comment
Comments to other elements of this Management Pack:
Article Message Posted By
Overview
Where can i find the documentation ( Management Pack Inventory.xlsx) for IIS 6 , IIS 7 and IIS 7.5

I need to download that instead of IIS 8 as we are not running IIS 8.

vivakhangloo@gmail.com at 4/4/2013 8:18:00 AM