FileHandler triggering

Topics: Controls
Feb 22, 2013 at 12:22 PM
Edited Feb 22, 2013 at 12:23 PM

I have just installed BlogEngine.NET 2.7 with one of the available download counters extension (with some modifications for the new version).

What I'm experiencing is that FileHandler event Served is not triggering every time a file is "served". I haven't debugged and looked deeper because I wonder if someone here knows where the issue might be. Perhaps catching?
FileHandler.Served += new EventHandler<EventArgs>(FileHandler_Served);

private void FileHandler_Served(object sender, EventArgs e)
    string f = System.IO.Path.Combine(HttpContext.Current.Server.MapPath(Blog.CurrentInstance.StorageLocation), "FileHandler_Served.txt");
    using (System.IO.StreamWriter file = new System.IO.StreamWriter(f, true))