How to fix corrupted project and item templates in Visual Studio?

by Viper 23. September 2009 05:09

While working on an ASP.Net application on Visual Studio 2008, I ran into a problem. When I right clicked on the project to add a new page into the project, i got the error message that no templates could be found. Well, that was kind of strange that I was working on the project night before and I did not run into such problems. Recently Microsoft has become pretty good about their error reporting providing some initial hints. In this case the message said that I should look in the event logs to find more details. The event logs had the following error message.

The global template information is out of date. Regenerate the templates by running 'devenv.exe /installvstemplates' or reinstalling the application. Note: corrective action requires Administrator privileges.

In the past I would have took the option of reinstalling Visual Studio. But this time the error message provided an alternative to fix the issue by reinstalling templates by running a command line option. And it worked. After I ran the command, Visual Studio 2008 was back to its normal templates.

Views: 1340

Tags:

Visual Studio

Comments

10/9/2009 6:14:46 AM #

Intruder alarms

I have been using the express editions of Visual Studio to build my knowledge for a number of months and I am beginning to make the transition to the pro edition. Before I do this I would like to extend my  knowledge of using the package before I get out my wallet. My recent experience is as a web developer with mysql, php, most linux based tools and an amount of flash, now I am moving to a Microsoft package. I am realising it is a large learning curve and am seeking to build my knowledge with some specialist blog reading.  The phrase " How to fix corrupted project and item templates in Visual Studio " in your post got me curious.  I find the Visual Studio tutorial sites  are oftentimes inert and mention the same items looking like an online manual.  Discussion in web logs can reference factual methods to resolve issues that leads me through the learning curve more rapidly.  Thank you for the post.

Intruder alarms United Kingdom

10/13/2009 3:57:27 AM #

Nice One

Just wanted to say thanks for this.

Nice One United States

10/13/2009 6:45:47 PM #

dog training advice

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

dog training advice United States

10/19/2009 11:48:19 AM #

cash loans

Interesting ... as always - is your blog making any cash advance ? ;)

cash loans United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.1.7
Theme by Naveen Kohli