The issue
My Visual Studio 2008 opened the solution file with no problem. However, when I was to add a new class, user control, aspx file or similar, I received the error:
Could not find part of "c:\Program Files\Microsoft Visual Studio 9.0\…\ItemTemplatesCache…"
[and the path to the ItemTemplatesCache in Visual Studio 2008 folder].
The solution
Well, one slution would be to reinstall or repair installation of Visual studio 2008. However, after searching for a while I found a solution that is much easier:
- Open "Visual Studio 2008 Command Prompt" as an Administrator
- Run the command: "devenv /installvstemplates"
- That's it
It takes a while but it completely rebuild your item template cache if it is corrupt or completely missing like me.
Thanks – this is exactly what I needed to solve my problem.