Workaround for ASP.NET MVC 3 RC2 Metadata Caching Bug

The recently released RC2 build of ASP.NET MVC 3 is reported of having a metadata caching bug that manifests itself in at least two scenarios:Both of above issues are caused by an over-eager caching optimization introduced late in the RC2 milestone. This issue will be fixed in the final ASP.NET MVC 3 release.You can fix […]

Share online:

The recently released RC2 build of ASP.NET MVC 3 is reported of having a metadata caching bug that manifests itself in at least two scenarios:

Both of above issues are caused by an over-eager caching optimization introduced late in the RC2 milestone. This issue will be fixed in the final ASP.NET MVC 3 release.

You can fix the issues in RC2 by adding one line of code to the Application_Start() event handler within the Global.asax class of your app. You don't need to change any other code within your app. Once you make this change the issues are fixed. You won't need to have this line of code within your app in the final release.

[tags]rc,release candidate,metadata[/tags]

[Source]

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.