This project is read-only.
Filter.NET has a simple configuration file located at %SYSTEMROOT%\Filter.NET\[version]\bin\filter.config. The directory where this file is located is also the same directory where all managed filters are expected to be located (besides the GAC).

The configuration file format is:

<?xml version="1.0" encoding="utf-8" ?>
    <section name="httpFilters"
             type="KodeIT.Web.Configuration.HttpFiltersSection, KodeIT.Web, 
             Version=, Culture=neutral, PublicKeyToken=18823f5c6a796933" />

      Add here the managed filters
      <add name="myManagedFilter" type="MyNamespace.MyClass, MyAssembly" />


The <httpFilters> tag has some useful attributes - errorDetail and errorPage - to define when to show error pages and what the error pages should look like. The available optional attributes are:

<httpFilters errorDetail="On|Off|LocalOnly" errorPage="somePage.htm">

As the snippet above shows, you can display errors with detail or without detail. You can also only display them when the request is made from the same box where IIS is located.

Last edited Sep 4, 2007 at 12:21 AM by thalm, version 5


No comments yet.