Thursday, December 03, 2009

Project Creation Failed in VS2008

Recently I ran in to an error while creating a project in Visual Studio 2008 which said "Project creation <project name> failed".

I spent couple of hours figuring out what's wrong. Here are the options which I came across. I will start with the one that worked for me.

1) Run following command to start visual studio

devenv /resetskippkgs

What I noticed in my case was, few days back I got an error in VS2008, which said its skipping some packages because of some issues.

2) This is another option which I came across. Follow following steps.

Another option which I came across is as follows.
  1. Run following command.regsvr32 C:\[Visual Studio installation dir]\Common7\IDE\VsWizard.dll
  2. After running this command, open registry editor and assign appropriate permissions to HKLM\SOFTWARE\Classes\VSWizard.VsWizardEngine.9.0 key. (though I did not find any issues with this key). Restart Visual Studio.

3) Following is last which I came across for this purpose. This looked to be related to the Beta release of Visual Studio.
  1. Navigate to: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE in Windows Explorer
  2. Load devenv.exe.config in your favorite text editor.
  3. Find this string: "Microsoft.VisualStudio.TemplateWizardInterface"
  4. Comment out the element
These are various options I could see for this issue. If anybody knows any other solutions for this, please comment.

No comments: