How to programatically record the start and end of an MVC FileResult for logging of incomplete downl

Posted by Richard on Stack Overflow See other posts from Stack Overflow or by Richard
Published on 2010-04-26T09:59:53Z Indexed on 2010/04/26 10:03 UTC
Read the original article Hit count: 299

Filed under:
|
|

Hi,

I have been investigating how My ASP.NET MVC application can log unsuccessful / incomplete downloads. I have a controller handling the file requests which currently returns a FileResult. What I need to record is the IPAddress, filename and when the download started, then the same data and when it completed. I have looked at intercepting the request start and end with an HttpModule and also IIS7 failed request tracing but am not sure which route would be best and have this feeling that maybe I am missing an obvious answer to the problem.

Does anyone have any suggestions or know of any alternatives as this seems like something many people would want to know from their web server?

Thanks for your help

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about mvc