John
John

Reputation: 159

ASP.NET Intermittent lag before Application_BeginRequest()

I'm using ASP.NET MVC 2. When in Debug mode, there is a very consistent 5-10 second delay on every other request to the server before HttpApplication_BeginRequest() is hit in Global.asax

It happens exactly every other request. In Release mode it is fast always but it's causing me problems testing things in Debug mode. I looked at the call stack but the only thing before the HttpApplication_BeginRequest() is "External Code" so I can't tell what's happening. How can I find out what is introducing this lag in the pipeline? Thanks.

Upvotes: 3

Views: 648

Answers (1)

James McCormack
James McCormack

Reputation: 9954

Doesn't ASP.NET recycle the App Domain every 15 hits? I once had a situation where I realised that due to using wildcard IIS mapping, all resource calls on the page (i.e. for script, images etc.) were going via the ASP.NET httphandler and thus contributing to the 15-hit count. Does that make sense?

Upvotes: 1

Related Questions