This project is read-only.

Filter .NET ReadRawData event issue.

Apr 7, 2008 at 11:49 PM
I am trying to access ReadRawData event in TraceRequest sample given in this website but it doesnt write out any trace output. On the contrary, with SendRawData event I can get trace output. Can anyone please tell me what the problem is? Below is my code
namespace FilterDotNet.Samples.TraceRequest
{
public class Filter : IHttpFilter
{
void IHttpFilter.Init(IFilterEvents events)
{
events.ReadRawData += new EventHandler<RawDataEventArgs>(ReadRawData );
}

void ReadRawData (object sender, RawDataEventArgs e)
{
Trace.WriteLine(ASCIIEncoding.ASCII.GetString(e.Context.GetData()));
}

void IHttpFilter.Dispose()
{
}
}
}
Apr 8, 2008 at 7:51 PM
Are you running Filter.NET in IIS6? IIS6 does not support the ReadRawData notification (event), only IIS5 does.

Tiago Halm
Apr 9, 2008 at 10:31 PM
When I say IIS 5.0 only supports ReadRawData I mean IIS 5.0 (Win 2000) and IIS 5.1 (Win XP). If the latter is your case, best steps would be to unregister Filter.NET, register it again.

  • filter_regiis.exe -u
  • filter_regiis.exe -i

Afterwards, try again to access a page inside your IIS with DbgView.exe open. Look into Event Viewer for any errors of nothing appears. If it doesn't work yet, re-check your Filter.NET configuration file, and also look into the ISAPI Filter order inside IIS with inetmgr.exe

let me know what you get

Tiago Halm