Display pretty file icons in your ASP.NET applications with IconHandler

*************************************************Update – 4/26/08:IconHandler 2.0 released.  **************************************************Update – 1/20/2007: Use the IconHandler in conjunction with the DirectoryListingModule to set up a nice-looking directory listing for your IIS website, or create a your own directory listing template.************************************************** Do you like file icons?  I do.  They make it pretty easy to visually digest file lists in Windows,  when … [Read more…]

You can actually download the hotlinking blocker module now

Apparently, my previous post of the LeechGuard hot-linking prevention module ended up with broken download and image links.  No-one could download the module, and on my home network I could see it just fine.  The funniest thing is that I found out about this from an internal email forward that referenced this module, and stated … [Read more…]

Fix problems with Visual Studio F5 debugging of ASP.NET applications on IIS7 Vista

********************************************************************** UPDATE – 4/8/2008 I’ve collected the various how-tos and gotchas about using Visual Studio 2005 and Visual Studio 2008 with IIS 7.0 applications into two detailed articles:Using Visual Studio 2005 with IIS 7.0Using Visual Studio 2008 with IIS 7.0Be sure to check them out for detailed info on working with both local and remote IIS … [Read more…]

IIS7 modules vs. IIS6 ISAPI: Managing request state in your module

For post #4 in the IIS7 Modules vs. IIS6 ISAPI series, let’s take a look at another common pattern in IIS module development – storing request-specific state inside your module. When developing a module that participates in request processing, it is often necessary to store request-specific state that the module computes in one stage of … [Read more…]

Stopping hot-linking with IIS and ASP.NET

Many web sites suffer from others directly linking to their image, video and other content. This practice is called often called leeching, hot-linking, or inline-linking and causes wasted bandwidth and increased server load to the victim web site. Last weekend, I wrote a little ASP.NET module that prevents hot linking. It can be used on … [Read more…]

Try out the IIS FastCGI techical preview

As you know, we released the FastCGI technical preview this week, aimed at providing a fast and stable platform for running FastCGI applications like PHP.  Its been very popular, with more downloads then we have expected for the first week. I wanted to say thank you to everyone trying this out.  By trying it out, … [Read more…]

IIS7 modules vs. IIS6 ISAPI: Memory Management

For post #3 in the IIS7 Modules vs. IIS6 ISAPI series, let’s look at one of the biggest trouble areas that bite ISAPI developers – managing memory. If you develop software that uses Win32 APIs, you should be familiar with the feeling you get when you look at the MSDN documentation of a fairly simple … [Read more…]

Dude, Sweet! New Error Page and FREB XSLs looks

IIS just got a lot cooler (looking): Check out the new styling XSL stylesheet for the FREB xml log files – http://blogs.iis.net/bills/archive/2006/10/19/Making-Failed-Request-Tracing-More-Approachable.aspx. FREB is a new IIS7 diagnostic feature that automatically collects detailed trace events for failed requests, and saves them as XML log files which can be visualized with the provided stylesheet. Just think … [Read more…]

Extending your IIS 7 server with .NET

I feel like I got off on the wrong foot in my blog coverage of IIS extensibility … I started spending a lot of time talking about building IIS7 server modules with the native API, but did not mention anything about the new .NET extensibility. This is strange for two reasons: I spent the majority … [Read more…]

Where did my IIS7 server go? Troubleshooting 503 "service unavailable" errors

In the previous post, I covered the “server not found” error that is a common and frustrating problem that may occur for a number of reasons after a configuration change, or when deploying a new server machine. Another common “what the hell just happened” error is the plain 503 “service available” error that looks like … [Read more…]