I have a module with custom ReleaseRequestState eventHandler. In this eventHandler i use HttpContext.Current.CurrentHandler, and just now revealed that in some situations (particularly - for *.css files) it can be NULL. How this can be, and how it can be correctly workarounded?
views:
169answers:
1
A:
Probably because you have not registered a IHttpHandler in your web.config for 'handling' css files. Should look something like this:
<httpHandlers>
<add verb="*" path="*.css" type="com.MyCo.MyCssHttpHandler, com.MyCo"/>
</httpHandler>
Your httpHandlers section probably already has sections for aspx and such
ryber
2009-12-26 13:35:22