Felipe Ferreira

MCT, MCITP Database Administrator, MCPD: Web Developer

Visual Studio 2008: project creation failed

English
Portuguese

If you install the GAX ( Guidance Automated Extensions ) package on a machine running Visual Studio 2008, you can see the Projet Creation Failed message on the Visual Studio status bar every time you try to create a new project, or to add a new object on a existing solution.

Apparently this is a problem with a dll redirection that GAX adds to the devenv.exe.config file on the installation. To solve this, we only have to remove this redirection. To do this:

- Open the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config file on the notepad.( don't forget to open the notepad as administrator, otherwise you'll not be able to save the file on this directory )

- Press Control+F and search for "Microsoft.VisualStudio.TemplateWizardInterface"

- Comment this item or delete it from the file. The piece where this line is found, should look like this:

<dependentAssembly>
<!-- assemblyIdentity name="Microsoft.VisualStudio.TemplateWizardInterface" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" / -->
<bindingRedirect oldVersion="0.0.0.0-8.9.9.9" newVersion="9.0.0.0" />
</dependentAssembly>

 - Save the file, and open Visual Studio 2008 again. And no more excuses not to be working! =)

UPDATE: if you don't have the above line in your file or if this does not work for you, please read the comments below to see other ways to fix this error. And thanks for all the visitors that shared their finds here :)

Comments

Ravneet said:

I dont have that line? Still getting the project create failed error.

# March 26, 2008 4:38 PM

Felipe Ferreira said:

Hi Ravneet

Can you send me your devenv.exe.config file? This way I can take a look and help you.

You can send to the following address: felipe.ff at msn.com

also..do you have the GAT or GAX installed on your machine?

# March 27, 2008 6:44 PM

Rob Redwin said:

Hello Felipe,

  I have the same problem as Ravneet. I do not have the line you reference in my devenv and am still getting the project create failed error.

  Can you assist?

# April 15, 2008 11:30 AM

Felipe Ferreira said:

Hi Rob Redwin

Do you have GAX installed on your machine?

If so...can you try to use this tool?www.codeplex.com/gaxpatch

If this not help, please let me know so I can try to help you.

Regards,

Felipe Ferreira

# April 15, 2008 5:21 PM

Ruben.W. said:

Hi.. i have the "project creation failed" issue.

And i've tried several sites, and they all say pretty much the same as u.. that u have to open the devenv file.

But i can't find my denenv file.

ive tried searching for it, and copying this link "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config"

But it isnt there.

Im useing "Visual C++ 2008 Express"

# November 14, 2008 9:54 AM

Felipe Ferreira said:

Hello Ruben,

that's why if you use the express family the file is not devenv.exe.config file..

it is the name of the executable plus .config.

I don't have visual c++ here, but for example for visual c# express the file is VCSExpress.exe.config

the file is at C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE folder...

regards,

Felipe

# November 14, 2008 10:26 AM

peter said:

im getting this creation failed error. i have the VCExpress.exe.config file open but it doesnt contain that string.  help?

# November 20, 2008 2:23 PM

Moeen ud din said:

Hello Every one,

I am getting the same problem Project Creation failed and that file which I need to to be edit does have that line..What should i Do??????????

# November 25, 2008 2:56 AM

valentin said:

Felipe i saw that you helped a lot of people here i had the same problem like Ruben i found my config file but there was no such line i dont know i fi have GAX or not i can send you my config file just tell me your e-mail

id like you to know that i am not so advanced in the rpogramming world so please i need help with that

i prefer you to awnser me on my email because i dont know if i am gonna visit this site again

# December 27, 2008 4:17 PM

Fuzzy said:

Thanks that worked on my instance

# January 12, 2009 1:20 PM

Max said:

Helped me man Thx

# January 23, 2009 3:47 PM

Edson said:

Olá!

Ao seguir o caminho C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE, já dentro da pasta IDE, não consigo encontrar o arquivo "devenv.exe.config" para que eu possa editá-lo. Ele não existe, sendo assim, como posso proceder.

Obrigado!

------------------------------------------------------

Hello!

By following the path C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE, IDE already inside the folder, I can not find the file "devenv.exe.config" so I can edit it. He does not exist, so how can I proceed.

Thank you!

# February 20, 2009 9:18 AM

Felipe Ferreira said:

Oi Edson,

você está usando as versões express do visual studio?

se for esse o caso, o nome do arquivo é diferente...para o C# Express o arquivo se chama

VCSExpress.exe.config..

espero q isso lhe ajude,

abraço

# February 20, 2009 9:25 AM

Edson said:

Mas não é C#, o que eu tenho instalado e necessito usar é o (Microsoft Visual C++ 2008 Express Edition).

Desde já agradeço, obrigado pela atenção, e desculpe-me pelo incômodo.

# February 20, 2009 9:04 PM

Dmitry said:

not working

# March 11, 2009 2:12 AM

Rick Taylor said:

I found the dvenv.exe.config file under "c:\program files (x86)\...."  This is because I have a x64 bit OS.

That said, the line doesn't exist in the file and I still have the "Project creation failed" message.

# April 12, 2009 1:13 PM

dinesh said:

Hi Felipe

This helps me a lot...

thanx

# April 29, 2009 4:56 AM

Adam said:

i am having the same problem and also do not have the dvenv.exe.config but i followed what i was supposed to do and i found VCExpress.exe.config.

<?xml version ="1.0"?>

<configuration>

   <configSections>

       <section name="msbuildToolsets" type="Microsoft.Build.BuildEngine.ToolsetConfigurationSection, Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

   </configSections>

   <startup>

       <supportedRuntime version="v2.0.50727" safemode="true"/>

       <requiredRuntime version="v2.0.50727" safemode="true"/>

   </startup>

   <runtime>

       <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

           <probing privatePath="PublicAssemblies;PrivateAssemblies;..\..\vc\vcpackages"/>

           <dependentAssembly>

               <assemblyIdentity name="Microsoft.Build.Framework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>

               <bindingRedirect oldVersion="0.0.0.0-99.9.9.9" newVersion="3.5.0.0"/>

           </dependentAssembly>

           <dependentAssembly>

               <assemblyIdentity name="Microsoft.Build.Engine" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>

               <bindingRedirect oldVersion="0.0.0.0-99.9.9.9" newVersion="3.5.0.0"/>

           </dependentAssembly>

           <dependentAssembly>

               <assemblyIdentity name="EnvDTE" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>

               <bindingRedirect oldVersion="7.0.3300.0" newVersion="8.0.0.0"/>

           </dependentAssembly>

           <dependentAssembly>

               <assemblyIdentity name="Microsoft.VSDesigner" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>

               <bindingRedirect oldVersion="8.0.0.0" newVersion="9.0.0.0"/>

           </dependentAssembly>

        </assemblyBinding>

   </runtime>

   <system.net>

       <settings>

           <ipv6 enabled="true" />

       </settings>

   </system.net>

</configuration>

that is what it has in it does anyone know what i may do?

# April 30, 2009 4:50 PM

Adam said:

i figuered it out for me at least. go to regedit and find HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VsWizard.VsWizardEngine.9.0 and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VsWizard.WizCombo.9.0 and set all the permissions to full. some of them i had to create a OWNER RIGHTS user name and gave that full permissions aswell, not sure if i had to but i did anything i could. after do that to those directories and the subdirectories it seemed to work. so give it a shot. and i always back up my registry when i change it, it's a good idea.

# April 30, 2009 6:35 PM

capecoralgreg said:

thanks. that did the trick. I just installed GAX the other day after trying the visifire controls. Silverlight was complaining about not having GAX. Do I really need GAX? Why do I need to use it?

# May 3, 2009 12:29 AM

bill said:

I have the same problem i don`t have that line...What can i do? PLEASE HELP..im waiting for you`re reply..10x

# May 4, 2009 5:38 AM

cheap propecia said:

Great work, well researched

# May 31, 2009 3:42 AM

HA said:

I have the same problem.

I can create C# projects but not C++ projects!

Using VS2008 Professional and Windows Vista 64bit

# June 1, 2009 11:46 AM

HA said:

I have the same problem!

I can create C# projects but not C++ projects.

Using VS2008 Professional and Windows Vista 64bit.

Checked 'devenv.exe.config' file. It doesn't include the line (Microsoft.VisualStudio.TemplateWizardInterface)

I have also changed permissions for the registry entries as suggested in one of comments. It didn't helped!

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VsWizard.VsWizardEngine.9.0 and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VsWizard.WizCombo.9.0

# June 1, 2009 11:50 AM

PleaseHelp said:

Nothing works. You all suck

# June 11, 2009 4:59 PM

Legend said:

The solution is an urban legend I think. None of the methods explained above worked.

I think , this bug exists in only trial versions. So the expected solution must be :

money , money , money  ( Napoleon Bonaparte )

# July 16, 2009 3:33 PM

fdsfa said:

<a href='www.sina.com'>.</a>

# August 1, 2009 7:51 PM

Ed said:

Adam got it right for me at least. If you do not have the line in your config file do what Adam said and you should be good.

i figuered it out for me at least. go to regedit and find HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VsWizard.VsWizardEngine.9.0 and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VsWizard.WizCombo.9.0 and set all the permissions to full. some of them i had to create a OWNER RIGHTS user name and gave that full permissions aswell, not sure if i had to but i did anything i could. after do that to those directories and the subdirectories it seemed to work. so give it a shot. and i always back up my registry when i change it, it's a good idea.

# August 29, 2009 7:55 PM

Felipe Ferreira said:

Hi Ed.. thanks for sharing your finds too.

will update the article indicating to read the comments for other alternatives..

regards

# August 30, 2009 9:18 AM

Marco said:

Hi,

Thanks for all solutions you guys have provided. The sad thing is I still can't get it to work and I have no hair left on my head. ;D. I've done everything that everyone has suggested me too. :D

- I did the Registry User permission thing. It didn't help. (didn't find the sub nodes (whatever that is) that someone mentioned, maybe I have to check that again).

- I tried the GAX (but that one fail on execution).

- I've searched for the "Microsoft.VisualStudio.TemplateWizardInterface" but as i run vista i found some similar lines and commented them out in "VCExpress.exe.config" as suggested instead of "devenv.exe.config". But that didn't help.

- I've reinstalled. No change.

- Run as Administrator. Fail.

- I've change the project location folder and gave it a unique names. Didn't work.

I think i did something else, but can't remember what it was, but as there are no more solutions out there and there are nothing on Microsoft site for this that helps. I must ask you guys.

I can tell you this. The first time I installed it. I didn't have this problem. It just suddenly failed to create the projects.

I installed Visual Studio 2010 Beta before VS Express 2008, and I have now uninstalled 2010. (A problem maybe?)

I Run Windows Vista Home Premium SP1 64Bit.

I'm also unable to install SP2 for some reason. It just times out at Step 3of3 100%, also a big problem that people have and I've tried every solution for that as well with no luck.

Any more ideas regarding the "project creation Failure?

Sorry for the big post. Any help is Appreciated.

Thanks Guys.

# September 6, 2009 9:33 AM

Marco said:

HAHA LOL!

As I wrote the previous big post I just noticed I didn't look at the sub nodes in the the Registry fix, that you guys talked about, and as i said in the post. I was very skeptic that I would find them or that it would fix anything.

But to my big surprise. It resolved the Project Creation Failure, and I'm so happy right now.

Thank you guys! ;D

# September 6, 2009 9:49 AM

Шаман said:

наткнулся вот

www.nigma.ru/index.php

# September 10, 2009 7:58 AM

Kike said:

Muchas Gracias, Thanks... it works!!

# October 19, 2009 7:05 PM

Prati said:

Thank you sooooo much!!

# October 22, 2009 1:33 AM

Mukund said:

This is working.

My Problem get resolved

Thanks

Mukund

# March 9, 2010 10:39 AM

Imran said:

Thanks It has worked for me.

# August 6, 2010 10:16 AM

yazanpro said:

So anybody can expose a final good solution please because I still have the problem. Thanks

# August 14, 2010 5:32 PM

BorisKulikov35 said:

<a href="http://www.passengers.com.ua">Пассажирские перевозки</a>,Прокат-заказ автобусов и микроавтобусов,Киев

# December 3, 2010 11:22 AM

Emmanuel Paul said:

commenting that line helped me to come out from the project creation fail issue .

Thanks buddy

# March 21, 2011 7:34 AM

el pistolero said:

Thanks Adam, that did the trick

# April 28, 2011 3:56 AM

Frank Castle said:

On Windows 7, select "Properties->Shortcut->Advanced" and check "Run as administrator", problem solved.

# May 5, 2011 2:38 PM

jes said:

I have the same problem.

I can create C# projects but not C++ projects!

Using  Windows Xp

# May 12, 2011 7:33 AM

Fekla said:

Мастер - отделочник - <a href="remont-kvartiry.kiev.ua/">%D1%80%D0%B5%D0%BC%D0%BE%D0%BD%D1%82 частный мастер</a>.

# June 13, 2011 3:57 AM

James Barker said:

Tried all above, my problem was packages failing to load.

Credit it wheer it is due .. the answer:

blogs.msdn.com/.../vs2008-getting-creating-project-projectname-project-creation-failed.aspx

# September 7, 2011 11:50 AM

Atif Sami said:

Visual Studio should NOT be running while you do this task, else it would not take effect

# October 21, 2011 6:06 AM

Visual studio 2008 : Failed to create project « Shashi's .Net Space said:

Pingback from  Visual studio 2008 : Failed to create project &laquo; Shashi&#039;s .Net Space

# November 9, 2011 5:10 PM

Halo said:

# December 3, 2011 7:43 PM

недвижимость в испании недорого said:

для тех кто ищет или планирует купить недвижимость в испании - рекомендую http://ispania-rielt.ru - большое выбор недвижимости в Коста Бланке и других регионах Испании.

# February 12, 2012 9:40 AM

банки калининграда said:

в последнее время банки предлагают выгодные проценты по вкладам. кроме того, ставки по кредитам на недвижимость также стали более доступными - nedvizhimost-kaliningrad.ru (недвижимость в калининграде)

# February 12, 2012 10:43 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)