Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Visual Studio 2008 Missing Templates

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

877 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