Solved

Visual Studio 2008 Missing Templates

Posted on 2013-06-04
5
537 Views
Last Modified: 2013-06-10
Hello,

I recently had a virus on my PC, and my local technician resolved it by cleaning/deleting various infected files.

I notice now that when I use Visual Studio 2008, all of my standard templates are missing (Windows forms, dialog boxes, standard modules, classes, etc.), so I can't create any new forms, popups, modules, etc.

Is there any way to get these standard templates back?

Thanks, Stu Engelman
0
Comment
Question by:stuengelman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 

Author Comment

by:stuengelman
ID: 39221191
A follow up:

I tried turning off VS 2008 and running devenv /installvstemplates in the VS 2008 command prompt.  It ran for a long time, and my tower light indicated alot of disk I/O, but on finishing, the templates were not restored within Visual Studio when I opened it back up again.

I notice that "Tools / Options / Projects and Solutions" within VS 2008 has "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Templates\ItemTemplates" listed as the target folder for VS User Item Templates.  This folder has three subfolders (Visual Basic, Visual C#, and Visual Web Developer), each of which is empty.

I'm wondering whether my Item Templates were purged as a result of the virus removal.  If so, is there any way of getting them back?

I notice that the folder "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\VisualBasic\1033" has all the zips with the Item Templates, but it's not clear that this is appropriate to what I'm doing, as I'm building a Windows PC application, not a web project.

I guess the question is: which folder on Win XP normally contains the zips with the Item Templates for PC applications, and if the folder or zips are missing, how do I get them back?

Thanks to all, Stu
0
 
LVL 7

Expert Comment

by:Alex_W
ID: 39222041
Can you re-install VS2008?
0
 

Accepted Solution

by:
stuengelman earned 0 total points
ID: 39223740
Hi Alex,

Yes, but this would take alot of work, and very often VS installs have bugs requiring MS assistance to resolve (MS support has gotten alot more expensive, and the support quality has gone from great to terrible).

After alot of searching on my drive, I found another folder containing my VS 2008 Item and Project templates.  I pointed to them in VS, and then I then ran devenv /installvstemplates in the VS 2008 command prompt again.  All the templates were restored, but now I have to test them to see if they actually work.  I'll let you know.

Thanks, Stu
0
 

Author Comment

by:stuengelman
ID: 39224841
Hi Alex,

The approach mentioned in my last post worked.

Thanks for your comment though.

Best regards, Stu
0
 

Author Closing Comment

by:stuengelman
ID: 39234146
Was able to resolve myself via information from internet blogs.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question