...
Removing "profile" NGEN images can help to get a quick fix for the issue.
This can be performed using the following commands:
- for Windows 32-bit:
%WinDir%\Microsoft.NET\Framework\<version>\ngen.exe uninstall * /profile
- for Windows 64-bit:
%WinDir%\Microsoft.NET\Framework\<version>\ngen.exe uninstall * /profile
%WinDir%\Microsoft.NET\Framework64\<version>\ngen.exe uninstall * /profile
Where <version> is the CLR version in following format: v<number>.<number>.<number> (for example v2.0.50727, v4.0.30319 etc.)
...