[Dev Tip] runAllManagedModulesForAllRequests

Recent days, I had debugged to find out: Why Application_AuthenticateRequest() method is called for all requests (I mean that included .css, .js,… requests), that didn’t exist before.

We are changing from form authentication to claim-based authentication. In source code for this change, we have:

<modules runAllManagedModulesForAllRequests=”true”>

This is reason, which I spent a day to detect it. 😦

Setting runAllManagedModulesForAllRequests to “true” is a best practice, but if we have handled modules well and performance is a critical then we can set it become “false”.

Some links:


– http://bartwullems.blogspot.co.uk/2012/06/optimize-performance-of-your-web.html

– http://stackoverflow.com/questions/4567844/what-is-the-correct-usage-of-runallmanagedmodulesforallrequests-in-asp-net-mvc


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s