Here's the scenario: I want IIS to be able to serve URLs from custom sources provided by my code. One example of this would be to serve files from an SQL database instead of the file system (this is an example however, I know about SQL server file tables and those are not the appropriate solution).
I know about HTTP handlers (*.ashx), but somehow, those never play nice with anything. I never got IE's resume download feature to work with them, not to mention streaming video files from mobile devices. There has to be a ton of code in IIS somewhere which decides how to handle all these cases, and I wouldn't want to rewrite it all from scratch and risk missing something critical.
What I'm looking for (and I think it's simple enough) is some callback which asks for some part of the data and lets IIS handle the HTTP response details. If that's not possible, is there any other solution which does not include HTTP handlers?