The following error appears when installing or uninstalling X-Forwarded-For for IIS on Windows Server 2008:
(0x800401e4): Failed to add Filter Winfrasoft X-Forwarded-For for IIS because Filters node cannot be created.
(0x800401e4): Failed to remove Filter Winfrasoft X-Forwarded-For for IIS because Filters node cannot be read.
Cause: The Winfrasoft X-Forwarded-For for IIS installation process runs a script to register the ISAPI filter with IIS. To maintain compatibility with both Windows Server 2003 and Windows Server 2008 the script is written for IIS6. To allow the script to run on Windows Server 2008 the IIS 6 Metebase Compatibility Role Service must be installed and the installation process does not check for this prerequisite. Except for the ISAPI filter not being registered, the rest of the application will be installed successfully despite the error.
Resolution: (1) To resolve the issue add the IIS 6 Metebase Compatibility Role Service to Windows and re-run the setup. (2) To work around the issue manually register the ISAPI Filter in IIS7.
In Server Manager select the Web Server (IIS) Role, add the IIS 6 Metebase Compatibility Role Service to Windows.
Note: None of the other IIS 6 Management Compatibility options are required.
Re-run the setup for Winfrasoft X-Forwarded-For for IIS and select the Repair option.
- Open IIS Manager.
- Select the Server name or Web site on which the X-Forwarded-For for IIS must be registered on.
- Double click ISAPI filters.
- Click Add... in the Actions pane.
- Enter Winfrasoft X-Forwarded-For for IIS as the Filter name.
Browse for the XFF4IIS.dll (32 bit) or XFF4IIS64.dll (64 bit) file, typically located in the C:\Program Files\Winfrasoft X-Forwarded-For for IIS\ folder.
- The "Winfrasoft X-Forwarded-For for IIS" filter is shown in the server/web sites ISAPI Filters list.
- Stop and Start the web site.