ASP.NET MVC: HtmlHelper.RenderPartial caches resolved names in release mode

In my previous blog post I described a performance problem that I thought I found in the HtmlHelper.RenderPartial method. It turned out that – thanks to comments and posts like this – I had my debug setting in /system.web/compilation on true. In debug mode HtmlHelper.RenderPartial is not caching the resolved names and therefore every call may result in exceptions.

Lesson learned

Double check all your configuration settings – and – thanks for the very active response.

Andreas Grabner has 20+ years of experience as a software developer, tester and architect and is an advocate for high-performing cloud scale applications. He is a regular contributor to the DevOps community, a frequent speaker at technology conferences and regularly publishes articles on You can follow him on Twitter: @grabnerandi