Solved

Visual Studio 2008 Missing Templates

Posted on 2013-06-04
5
523 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
  • 4
5 Comments
 

Author Comment

by:stuengelman
Comment Utility
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
Comment Utility
Can you re-install VS2008?
0
 

Accepted Solution

by:
stuengelman earned 0 total points
Comment Utility
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
Comment Utility
Hi Alex,

The approach mentioned in my last post worked.

Thanks for your comment though.

Best regards, Stu
0
 

Author Closing Comment

by:stuengelman
Comment Utility
Was able to resolve myself via information from internet blogs.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now