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.
While debugging ASP.NET MVC source i found MVC-ControllerTypeCache.xml file is used. But i am
Share
The 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
TypeCacheUtilinternal 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.xmlwhich is used to cache areas.