5
votes

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.

3
I cannot reproduce the issue, it works without any issue after I updated to Azure SDK 2.9.5. The SDK should be fine. - forester123
But i tested this with 3 PCs, all freshly updated SDK v2.9.5 in all 3 PCs the same issue came up. This can not be a coincidence - Kasun Kodagoda

3 Answers

1
votes

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...

0
votes

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.

0
votes

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"