Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'

4

I am in the process of creating Azure Resource Manager deployment templates for my project using the Azure Resource Group Project in Visual Studio 2015 project templates. I successfully managed to create the projects before. But today, I updated the Azure SDK to v2.9.5 and suddenly the project creation failed. It failed with the following error message.

Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE.Project'. This operation failed because the QueryInterface call on the COM component for the interface with IID '866311E6-C887-9833-645F5B93F6F1}' failed due to the following error: No cush interface supported (Exception from HRESULT: 0x80004002 (E_NONINTERFACE)).

enter image description here

This exception happens when i select starting template from the template selection dialog box (I selected WebApp+SQL template. This fails for other templates as well). So after this the project is incomplete created.

I faced this same issue in 3 different PCs with Azure SDK v2.9.5 installed. Is this issue related to the SDK itself? Or how should i fix this.

azure
visual-studio-2015
azure-resource-manager
arm-template
azure-sdk
asked on Stack Overflow Oct 12, 2016 by Kasun Kodagoda

3 Answers

1

We have bug and are working on a fix. In the meantime you can:

  • remove the solution items from your solution
  • add the new project
  • add the solution items back

LMK if that doesn't fix it for you...

answered on Stack Overflow Oct 24, 2016 by bmoore-msft
0

I experienced this same issue when trying to create a new azure project for an existing application.

I was able to workaround the problem by creating a new project with a new solution and selecting the template I wanted. I then added the azure template project into my existing project without issue.

answered on Stack Overflow Oct 20, 2016 by ElMattIO
0

Try this: Open 'cmd' with Administrator privileges,

regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\dte80.olb"
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\dte80a.olb"
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\dte90.olb"
regsvr32 "C:\Program Files (x86)\Common Files\microsoft shared\MSEnv\dte90a.olb"
answered on Stack Overflow Apr 26, 2017 by Tracy Zhou

User contributions licensed under CC BY-SA 3.0