Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0

ASP.NET 2.0 applications on IIS 7.0 are hosted using the ASP.NET Integrated mode by default.  This new mode enables a myriad of exciting scenarios including using super-valuable ASP.NET features like Forms Authentication for your entire Web site, and developing new ASP.NET modules to do things like URL rewriting, authorization, logging, and more at the IIS … [Read more…]

Developing IIS7 modules and handlers with the .NET framework

Download: MyIIS7Project.zip This article, the first in the IIS7 .NET Developer series, focuses on getting started with developing IIS7 web server features based on the .NET Framework.  This article will demonstrate: 1.       How to decide whether to develop an IIS7 module or an IIS7 handler. 2.       How to set up your development environment, with Visual Studio, Visual … [Read more…]

Redirect requests to your application with the HttpRedirection module

Download: HttpRedirection_v1_source.zip The HttpRedirection module allows you to configure regular expression-based rules that redirect clients from url A to url B using http redirection. When clients make a request to your server, and the url matches one of the redirection rules you have configured, the server will respond with a redirection response, telling the client to … [Read more…]

Redirect clients in your application with HttpRedirection module

Download: HttpRedirection_v1_sampleapp.zip In a web application, it’s often necessary to redirect clients requesting one url to another url.  Here are some reasons why your application may need to do it: ·         A part of your site should only be accessed over HTTPS to protect private data, so you want to redirect requests made over HTTP to … [Read more…]

Get nice looking directory listings for your IIS website with DirectoryListingModule

*************************************************(NEW) Update – 2/1/09:Clarified installation instructions (see post).Fixed bugs: – Occasional icons missing / icons missing during heavy load due to MTA problems with SHGetFileInfo (http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=337530) – Directory listing template has broken icons in some configurations *************************************************Update – 4/26/08:IconHandler 2.0 released. Use IconHandler to build your own directory listing, or any other app that needs file icons. **************************************************  Do you … [Read more…]

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…]

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…]