No Visual Studio template found error

The last few blogs that I posted about were about errors and there should be no surprise this time as I'm posting another error that I encountered today while firing up Visual Studio 2008 at home. The error that I received was, there was "no Visual Studio template found" and regardless of what framework I picked when creating a new website or project, no template was shown. Take note that I'm also using Microsoft Vista which also added to the issue (as I'll discuss in a few).

When I searched online, I found a dozen of posts from the different forums covering the error and to resolve this issue, I will need to bring up Visual Studio 2008 command prompt. This is pretty much the same as the regular command prompt but designed so that the listed directory is initiated in the installed Visual Studio 9.0 directory.

Users who are using the express edition will need to type: vcseexpress/installvstemplates (C#) while vbexpress.exe/installvstemplates for users that has VB installed. If you're using the pro edition, you will need to type in devenv.exe/installvstemplates to install the templates. While typing the command however, I was prompted by an error stating that the "requested operation requires elevation" which didn't make sense in the beginning. After a few minutes of digging in the web, I found the solution that I was looking for. You will need to bring up the Visual Studio 2008 command prompt alternatively by going to "All Programs>Microsoft Visual Studio 2008>Visual Studio tools and from there, you'll find the command prompt. Instead of clicking on it however, you will need to right-click it instead and run it as an administrator. This issue only occurs in Vista, so if you're using XP--you should be fine.

- Dennis
menacestudio.com

Published Friday, July 11, 2008 12:07 AM by Dennis
Filed under:

Comments

# re: No Visual Studio template found error

Wednesday, September 24, 2008 3:41 PM by Bryan Siegel

You are my super hero. Man I've been trying to figure out this problem for a week for vs pro 2008. I've been using expres and it hasn't been the same.

# re: No Visual Studio template found error

Wednesday, September 24, 2008 3:50 PM by Dennis

I'm glad that it worked for you.

Another option that I found which works if the command prompt option doesn't work is to change the 'projects location' in the Visual Studio > Options.

From the options screen, locate the "Projects and Solutions" and there you'll find that you can change the folder where the project templates resides. You can change that to the Program Files > Visual Studio 9 and browse it to the project templates sub directory. That should work as well.

# Pegasuz » Blog Archive » Verdwenen templates in Visual Studio 2008

Pingback from  Pegasuz  » Blog Archive   » Verdwenen templates in Visual Studio 2008

# re: No Visual Studio template found error

Wednesday, November 26, 2008 8:36 AM by Marcel

SUPER thanks.

Marcel

# re: No Visual Studio template found error

Friday, November 28, 2008 10:47 PM by Aurelia

Wonderful! Saved my project.

# re: No Visual Studio template found error

Thursday, February 19, 2009 12:27 AM by Prasad

Thanks Dennis.. It has saved my project. Thanks a lot..

# re: No Visual Studio template found error

Friday, May 29, 2009 1:21 AM by Brian

What an odd occurance.  Wonder what causes this.  Your solution was dead on.  Thanks very much and now back to work. You know I just recently had problems with an update attempt at .NET 3.5 SP1 updates for user family (or something like that) which I was prompted to do as a result of a recent move from SQL Server 2008 Trial to SQLExpress 2008.  I got caught in a bad install loop and had to do a System Restore.  So of course when this happened I suspected the culprit to be Microsoft.  Well I'm learning all this to add more skills to my consulting practice.  Hope all these scary moments will lead to some business.  Of course when I'm writing COBOL modules some other poor soul had to do all the admin for the software and development environments.

# re: No Visual Studio template found error

Friday, July 31, 2009 6:25 AM by Chris Francis

Brilliant! Thanks for pointing me in the right direction, just to note there were a couple of things I had to change when running Visual Studio Professional 2008 and Vista Ultimate SP2 (SP2 actually caused this issue in the first place):

1. When running VS Command Prompt as administrator, my default directory was reset to "C:/Windows/System32" (not the VS2008 install directory) so I had to manually navigate back to the "Microsoft Visual Studio 9.0" directory.

2. Typing "devenv.exe/installvstemplates" did nothing, but typing "devenv/installvstemplates" (removing the .exe file extension) did the trick.

Hope this helps someone.

Chris

# re: No Visual Studio template found error

Tuesday, August 18, 2009 10:25 AM by Matt3.5

I am running Vista Business Edition 32bit SP1 + VS2008 SP1 and experienced the same problem as Chris Francis above. Thankfully Chris is a very cool guy and posted up the solution!!

# re: No Visual Studio template found error

Thursday, September 10, 2009 10:00 AM by ibro

I have tried all the given examples but come to avail! I dont have the VS2008 pre installed project Template. I am using XP pack 3 and I have also got web developer express edition installed, where are my templates??

Leave a Comment

(required) 
(required) 
(optional)
(required)