Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Visual Studio 2008 Missing Templates

Posted on 2013-06-04
5
Medium Priority
?
553 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

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

715 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