Solved

Visual Studio 2008 Missing Templates

Posted on 2013-06-04
5
543 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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

628 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