I have a a standard ASP.NET (Web Forms) application running on IIS8 and receiving complaints that sometimes it takes to the website too much time to process requests.
After deep investigation and logging I've figured out that delays take place wherever after the end of PreRequestHandlerExecute event in my last HTTP module and before ProcessRequest event in my HTTP handler.
As far as I understand I don't have any code in between and this part of the pipeline is absolutely managed by IIS and ASP.NET framework. I've also seen that Module and Handler processing thread ID changes when delays take place.
I've read tons of docs and haven't got closer to the resolution :(
What can be reason for these delays?
Thanks in advance