Recently, I was working on a web application that provides the ability to download data to a CSV file. It is a .NET 3.5 web application.
To generate the CSV file, I created a custom httpHandler for the extension *.csv. The goal was to allow any request for a *.csv file to generate the desired output by querying a DB.
Everything worked great on my laptop but did not work when I deployed to the web server (IIS 6.0).
What gives?
The problem was that on IIS, I needed to add the *.csv extension to the MIME type map. I pointed the executable to the ASP.NET dll and viola, it worked.