23
Apr
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.



Thank you for posting the errata so quickly
[...] The problem that has been discovered in this blog entry was resolved – thanks to Simone. Read my follow up blog post that describes why I ran into this problem: http://blog.dynatrace.com/2009/04/23/aspnet-mvc-htmlhelperrenderpartial-caches-resolved-names-in-rel... [...]
Thanks for pointing me to the actual problem. I think that many developers out there look for code that they can download to jump-start digging into new technologies. Most often – code that you download – is not there to be used AS-IS for your specific need.
So I think its still good that we discovered this problem because many others may run into the same configuration issue
I love ASP.NET MVC – great framework.
ITemplatez.com offers professional web templates, flash templates ,swish templates, dreamweaver templates, and other web design productsavailable for immediate download.
[...] to VoteASP.NET MVC: HtmlHelper.RenderPartial caches resolved names in release mode (4/22/2009)Wednesday, April 22, 2009 from Andreas GrabnerIn my previous blog post I described a performance [...]
Nice article! It’s been very informative!