Receive 404 Error When Implementing Custom httpHandler with .NET

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.

This entry was posted in .NET ASP.NET, Internet. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>