Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 263
Kasun Kodagoda Avatar asked Nov 09 '22 07:11

Kasun Kodagoda


1 Answers

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

like image 80
bmoore-msft Avatar answered Nov 14 '22 22:11

bmoore-msft