Today, when I start visual studio and click on Add new Item I found that WebForm option is missing from visual studio templates. Thanks to Eric Hammersley who gave the perfect solution. To add missing templates you need to run following command on visual studio command prompt.
Close all instance of Visual Studio. Open visual studio command prompt and type,
devenv /installvstemplates
Press Enter. Let the process be complete and now open visual studio. You will get all missing templates under Visual Studio installed templates.
Happy Programming !!
If you are running Vista, you should run the VS2005 command prompt via Right Click -> Run As Administrator, as this command requires you to run in an elevated mode.
———-
Chinmay
http://metrix.blogspot.com
Well done! Thanks for posting this. I had the same problem (missing ascx template) in Visual Studio 2008 and your solution worked.
FYI, if you are running the 64 bit version on Vista 64, you need to open the x64 Win64 command prompt to run this command. I tried it with just the “Visual Studio 2008 Command Prompt” from the menu and it did not work, so I said what the heck, and tried the x64 Win64 command prompt, and it worked. Thanks for the solution!
Thanx.
Why VS is so stupid?? I spent more than 1 hour to understand how to create a windows application form in visual c#…
Thanks bud… even though simple, very helpful..
Thank you so much for the help. Im new to visual studio and it really helped me out. You guys are doing great job
Thanks a lot! For a moment I thought I’d have to reinstall the whole Visual Studio application! You saved me a lot of time
Hi All,
I use 64 bit version on Vista 64, and tried “Visual Studio 2008 x64 Win64 command prompt”. It didn’t work for me.
I got ‘The operation could not be competed. The requested operation requires elevation.’ If someone knows, please help
Thanks in advanced!
wen
I final figured it out.
I need turn off User Account Control (UAC) in control panel before running ‘devenv /installvstemplates’.
Thanks All.
I had the same problem and it was missing .zip template files in the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp\1033 folder
These files:
WebForm.zip
WebClass.zip
MasterPage.zip
etc.
I copied all of these .zip files from my other PC into this folder and problem solved.
How did this happen? Disk Cleanup – Along with other files I selected *.zip files for deletion, Doh!
worked like a charm. not sure why the install of vs2008 didn’t do this. i installed sql 08 first which installed it for reporting services. i wonder if this was the issue.
Hey guys,
I’m trying to figure out how to integrate SQL Server and Visual SourceSafe but I’m not getting anywhere. I thought it would be as easy as selecting a template but its not. Any suggestions?
Thanks