Turn Static and Dynamic Compression Off on IIS 6.0

We found an issue when downloading dynamic PDFs files on IIS 6.0. Since it uses a regular PDF as a template and binds the data dynamically on the client, IIS compression was modifying the file and it cause the bind to fail. In this case you need to disable IIS’ file compression (both static and dynamic) and the only way to do it on IIS 6.0 is through the IIS Metabase.
You can use metabase editor or edit it manually by the metabase’s XML file. The steps to edit the metabase file manually are the following:

 

Enable IIS Metabase direct edition

Go to IIS Manager.
Right click on the computer name an select Properties.
Check the Enable Direct Metabase Edit option and click OK.

 

Backup the metabase file

The metabase file is located at C:\windows\system32\inetsrv\metabase.xml

 

Edit the metabase file
Add the following attributes to the virtual directory (IIsWebVirtualDir node) or web site (IIsWebServer node):

DoStaticCompression=”FALSE”

DoDynamicCompression=”FALSE”

 

Save the metabase file

 

Reset IIS

Run the iisreset.exe command

 

Disable the IIS Metabase direct edition

Go to IIS Manager.
Right click on the computer name an select Properties.
Uncheck the Enable Direct Metabase Edit option and click OK.

 

See you,

Amadeu.