While debugging ASP.NET MVC source i found "MVC-ControllerTypeCache.xml" file is used. But i am not able to understand the use of this file.I mean where is this file stored? How asp.net MVc makes use of this file? Please help.
what is MVC-ControllerTypeCache.xml in MVC
225822-Jan-2015
Updated on 22-Jan-2015
Lillian Martin
22-Jan-2015The file is used to cache controller types to avoid expensive reflection lookups. It is dynamically generated and stored in the c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\NAMEOFYOURAPP\xxxxx\xxxxxxxx\UserCache\ folder.
It's handled by the TypeCacheUtil internal class that you could find in the TypeCacheUtil.cs in the ASP.NET MVC source code.
Here's an example of how this file might look like:
There's also the MVC-AreaRegistrationTypeCache.xml which is used to cache areas.