Re: IIS 6.0: How to add isapi filter?

From: Wade A. Hilmo [MS] (wadeh_at_microsoft.com)
Date: 01/28/05


Date: Fri, 28 Jan 2005 07:50:20 -0800

Hi Paul,

A. As I explained in my previous post, the worker process (which is where
your filter is loaded) is not started until it's needed. You have to make a
request.

B. "Web Services Extensions" has nothing to do with filters. The entries
that you see for ASP.NET and ASP are for extensions.

Thank you,
-Wade A. Hilmo,
-Microsoft

PS: The MMC snap-in is not a very good way to determine the status of your
filter in IIS 6. The issue is that IIS 6 can have many worker processes and
it's possible that the filter may load in some, but not others - yet the UI
has no way to convey this information. All the UI does is check a single
flag in the metabase for the filter state. Again, as I posted, if a worker
process is unable to load a filter, then it will fail to start and an event
will be written to the event log.

"PaulT" <pthakur@apsc.com> wrote in message
news:#6i6VQMBFHA.3588@TK2MSFTNGP11.phx.gbl...
> If the process is same as in IIS 5.0, then:
> A. I should be able to add a filter via the web site property page under
the
> Isapi Filter Tab and there is no need to setup anything for this filter
> under the Web service Extensions, True? Why then I don't see the GREEN up
> arrow under the status in ISM same as in IIS 5.0?
>
> B. How is "Web Services Extensions" used, when do you add a filter there?
I
> see it has ASP.NET and ASP Pages in there with status allowed.
>
> Thanks for your help.
> Paul
>
>
>
>
> "Wade A. Hilmo [MS]" <wadeh@microsoft.com> wrote in message
> news:%23DOutuLBFHA.3820@TK2MSFTNGP11.phx.gbl...
> > Hi Paul,
> >
> > How are you determining that the filter is not loading?
> >
> > The process of installing a filter in IIS 6 is exactly the same as 5.
> There
> > are two differences, though. First off, IIS 6 does not start a worker
> > process until it's needed to handle a request. Because of that, it may
be
> > necessary to actually make a request to the site in which you are
> installing
> > the filter so that the process starts. Second, it is possible that the
> > worker process may not have sufficient rights to the metabase key that
> > stores the flag that the filter is loaded. In this case, the MMC snapin
> > might report the filter as unloaded when it's really there. Note that
> I've
> > only seen this happen when someone has applied either custom ACLs to the
> > metabase, or when they are running the worker process with a customer
user
> > account.
> >
> > The filter is configured to load, and fails. There are two things that
> will
> > happen. First, IIS will write and event to the log. Second, the worker
> > process will fail to start (a new feature in IIS 6 is that all filters
> must
> > load, in order for process initialization to succeed.)
> >
> > Thank you,
> > -Wade A. Hilmo,
> > -Microsoft
> >
> > "PaulT" <pthakur@apsc.com> wrote in message
> > news:uL0gfOKBFHA.2076@TK2MSFTNGP15.phx.gbl...
> > > In IIS 5.0, adding an isapi filter was straight forward via ISM Admin
> tool
> > > using property pages. I tried the same steps in IIS 6.0, however I
can't
> > get
> > > the filter to load. Is there something that needs to be
setup/configured
> > > else where:
> > >
> > > 1. Web Service Extensions?
> > > I even changed the status to "Allowed" for "All unknown isapi
extension"
> > and
> > > CGI extensions, didn't help.
> > >
> > > 2. Do I need to setup a Web Service Extension first and then add the
> isapi
> > > filter on a web site via web site property page. I did try that, no
> > effect.
> > > I am not sure how the Web Service Extensions as setup in IIS 6.0 get
> > related
> > > to the isapi filter entry in the property page of a web site other
than
> > > pointing to the same physical path for the executable. How do I relate
a
> > > specific Web Service Extension to selected web sites?
> > >
> > > I don't want this filter to apply to all sites.
> > >
> > > I did restart IIS multiple times after each change just incase taht
made
> a
> > > difference.
> > >
> > > Any help will be appreciated.
> > > Thanks,
> > > Paul
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: where is it hiding?
    ... processed without the filter loaded. ... The messages that you see in the UrlScan log are just there to indicate when ... Assuming that a filter is properly installed, it is possible for IIS to fail ... fail to load the filter prior to calling any entry points (due to ...
    (microsoft.public.inetserver.iis.security)
  • IIS 6 / ISAPI filter loading behavior inconsistency - Windows Server 2003
    ... I'm receiving inconsistent behavior when I try to load an in-house written ... ISAPI filter under IIS 6. ... We have three identical machines running Windows ...
    (microsoft.public.inetserver.iis)
  • Re: WriteFile buffers in memory
    ... > you are stuck tying up a couple threads per request. ... > 2) iis run an isapi filter that handles asp.net pages ... > 5) the asp.net worker process keeps a pool of threads to actually process ... >> an ASP page is so I can start the reading at a particular offset. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IIS 6.0: How to add isapi filter?
    ... As I explained in my previous post, the worker process (which is where ... your filter is loaded) is not started until it's needed. ... filter in IIS 6. ... it's possible that the filter may load in some, but not others - yet the UI ...
    (microsoft.public.inetserver.misc)
  • Re: (WMI) IIsFilterSetting.FilterState doesnt appear to change
    ... The FilterState property simply indicates the status when IIS last ... attempted to load the particular filter into *any* process. ...
    (microsoft.public.inetserver.iis)

Quantcast