views:

126

answers:

4

When I attempt to "add new item" to my web project (by right-clicking, add new item) - there is no template for it. What might the problem be? I'm using VS2008.

Additional Info:
When I right click on the solution and "Add", "New Web Site" - I have zero tempates to choose from.
I have tried running devenv /installvstemplates and this template box is still empty.

I have only three templates in the following directory.
Is there somewhere I can just copy the other templates from manually?
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\Web\CSharp\1033

+2  A: 

Try opening the Visual Studio command prompt (as an administrator) and run devenv.exe /Setup from your VS 2008 installation path (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE in my case), or run from the same prompt: devenv /installvstemplates

jao
Tried, but no luck.
Jeremy
+1  A: 

Update:

It looks like multiple people reported the same problem.

There's a hot fix available that might help you.

Vadim
Thanks - but still no go. It looks like the templates are not installed in my program files directory.
Jeremy
+1  A: 

It is probably your project type. Try creating a new project of type web.

Shiraz Bhaiji
I think this is on the right track, but when I right click on the solution and "Add", "New Web Site" - I have zero tempates to choose from.
Jeremy
Sounds like there is something wrong with your VS installation. You should try re installing.
Shiraz Bhaiji
A: 

Unfortunately, the answer for me was re-installing VS. Not exactly sure what the issue was, but that fixed it.

Jeremy