Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Monday, August 27, 2007

Filter.NET Framework 1.0 release

The latest release of Filter.NET 1.0 is out, get it here:

http://www.codeplex.com/filterdotnet/Release/ProjectReleases.aspx?ReleaseId=6465

There are minor changes related to the registration the native filter with IIS, so this step can be fully automated.

http://www.codeplex.com/filterdotnet/Wiki/View.aspx?title=IisRegistration&referringTitle=Home

There also new attributes to the httpFilters tag to help on protecting the viewing of error details related to managed filters:

http://www.codeplex.com/filterdotnet/Wiki/View.aspx?title=Configuration&referringTitle=Home

I expect to find time to start publishing more enterprise oriented samples.
Let me know any issue you find. Enjoy!

Tiago Halm

Friday, August 17, 2007

Avoiding CLR versioning issues

Since Filter.NET is a framework dependent on .NET 2.0, you may run into CLR versioning issues if any of the AppPools contain virtual directories configured with ASP.NET v1.1. While this is unavoidable in IIS 5.x when subscribing to SF_NOTIFY_READ_RAW_DATA, it can easily be overcome in all other cases.

As you may know (or not know) ISAPI filters can be installed at global scope or site scope. Global scope means that every single request gets filtered by the ISAPI, while site scope means that only requests for that specific site are the ones filtered. ISAPI Filters that subscribe to read the raw data (only available in IIS 5.x) are required to be installed at global (or server) scope. All other filters can be installed at site scope.

But we're talking about CLR versioning issues, like having ASP.NET v1.1 and ASP.NET v2.0 running on the same process. What does this have to do with sites?

Just make sure you organize your IIS sites (and virtual directories beneath it) by ASP.NET version. Then, organize and assign the AppPools accordingly. Having done that, and to avoid CLR versioning issues, you can safely install Filter.NET at the site level on the sites that have ASP.NET v2.0 (and ASP, PHP, CGI, PERL, ect...)

Thursday, August 16, 2007

Filter.NET (v0.9 beta) is out

Finally, I was able to publish the current beta version of Filter.NET.

What is Filter.NET?

Filter.NET is a framework designed to expose the ISAPI Filters API to .NET while maintaining the power, flexibility and efficiency of the IIS platform. (official version)

Basically, its my attempt to allow .NET developers to create ISAPI filters in IIS 5.x and IIS 6.0. After performing some stress testing and looking at cost/benefit given by the garbage collected language along with its ease of programming, I believe it was a good choice.

However, its for you to decide. Do check it out and let me know how it goes.
I'll be posting more info here about it.