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

IIS7 Integrated mode: Request is not available in this context exception in Application_Start

The “Request is not available in this context” exception is one of the more common errors you may receive on when moving ASP.NET applications to Integrated mode on IIS 7.0.  This exception happens in your implementation of the Application_Start method in the global.asax file if you attempt to access the HttpContext of the request that … [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…]

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