Visual Studio 2008 – ItemTemplatesCache missing

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:

  1. Open "Visual Studio 2008 Command Prompt" as an Administrator
  2. Run the command: "devenv /installvstemplates"
  3. That's it

 

It takes a while but it completely rebuild your item template cache if it is corrupt or completely missing like me.

About Mikkel Ovesen

I am a .NET developer, primarily developing apps for the web. I have been working with ASP.NET and C# for more than 5 years, and web development for 10 years. I like open-source software and burgers ;)
This entry was posted in Development, Software and tagged , , , , . Bookmark the permalink.

One Response to Visual Studio 2008 – ItemTemplatesCache missing

  1. Andy Wilson says:

    Thanks – this is exactly what I needed to solve my problem. :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>