Last post Dec 08, 2010 06:10 PM by rstrahl
Nov 28, 2010 06:39 PM|user22|LINK
When I have a HttpHandler class in C#/ASP.NET mapped to a file extension in IIS any file with that extension fails to download/display in web browsers (it's downloaded as a 0-byte file in some browsers and nothing at all in other browsers). After removing
the application mapping for the HttpHandler in IIS so it doesn't call the IHttpHandler class in C#, the web browser downloads the file successfully.
This was tested with an IHttpHandler class in C# that has an empty ProcessRequest method. Any ideas on what the problem could be?
Dec 08, 2010 05:02 PM|grahamlower|LINK
Sounds like IIS is routing the request to your handler based upon the file extension, then you extension is doing what it is designed to do, which is return nothing. This is as designed. If you want a different action, then you need to have your handler
do such, e.g. you want the file you have to have your handler serve it up.
Dec 08, 2010 06:10 PM|rstrahl|LINK
Uhm, what does the handler do? When you map to a handler - the handlers actions determine what happen...
+++ Rick ---