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 :)
Se você instalar o pacote
GAX
( Guidance Automated Extensions ) em uma máquina com o
Visual Studio 2008 você pode ser supreendido com a
mensagem: Project Creation Failed na barra de status do VS
sempre que você tentar criar um novo projeto, ou um erro
tentando adicionar um novo objeto numa solução já
existente.
Aparentemente esse é um problema com um redirecionamento
de dll que é adicionado no arquivo devenv.exe.config no
momento da instalação. Para resolver esse problema apenas
precisamos remover 1 redirecionamento problemático. Para
isso:
- Abra o arquivo
C:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE\devenv.exe.config no bloco de notas. ( se estiver usando o Vista não
esquece de abrir o bloco de notas como administrador,
senão você não irá conseguir salvar o arquivo depois de
modificar )
- Aperte Control+F e procure pelo texto
"Microsoft.VisualStudio.TemplateWizardInterface"
- Comente este item, ou delete ele do arquivo. A parte
onde este arquivo se encontra tem que ficar assim:
<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>
- Salve o arquivo e abra o Visual Studio 2008
novamente. Crie o novo projeto e mãos a obra. Chega de
desculpas pra não trabalhar!
UPDATE: se você não tem essa linha no seu arquivo, ou se
essa solução não funcionou, leia os comentários abaixo
para ver outras formas de solução! muito obrigado a
todos que compartilharam suas descobertas aqui :)