views:

474

answers:

3

Today I realized that I no longer have a ”Web Content Form” option (where you select a MasterPage) when I add new items to my ASP.NET web application. I know how to manually add a MasterPage to a web form, it’s just such a pain – and I really don’t understand why Web Content Forms suddenly are missing.

Visual Studio Team System 2008, SP1, VB.NET, ASP.NET 3.5

I recently installed and uninstalled VisualSVN. My best guess is that screwed up my poor VS somehow.

How do I get Web Content Forms back??

A: 

Try resetting all of your settings.

Tools -> Import / Export Settings

This will bring up the settings import wizard. Choose reset all settings and select the Profile your are comfortable with (your post said vb.net so probably the VB profile). See if that fixes the issue.

JaredPar
Nope, didn't seem to work...
Jakob Gade
+1  A: 

Did some digging and I think the Templates live here:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\

and the template for the content page is this:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Web\1033\ContentPage.zip

I am unsure about how you would get a new copy of that file if it is missing for you without reinstalling VS

Jon Erickson
Seems like a very good solution. Since I asked the question, I got a new laptop (yay), but I'll try it out when I get the old one booted up again.
Jakob Gade
+1  A: 

Close all your instances of visual studio Open a VS command prompt and type

devenv /installvstemplates

this should re install all your VS templates

Lightweight
+1. Thanks, I'll definately try that the next time I get the same problem. Did some googling, came up with this: http://dotnetcrunch.blogspot.com/2009/04/devenvexeinstallvstemplates-missing.html.
Jakob Gade