Skip to content

Unable to cast COM object of type 'System._ComObject' #2

Description

@redwards510

I get the following error when right clicking on a DbContext class when trying to generate the diagram.

Unable to cast COM object of type 'System._ComObject' to interface type 'Microsoft.VisualStudio.Shell.lnterop.lVsAggregatableProject'
This operation failed because the Querylnterface call on the COM component for the interface with IID
'{FFB2E715-7312-4B93-83D7-D37BCC561 C90}' failed due to the following error:
No such interface supported (Exception from HRESULT: ox80004002 (E_NOINTERFACE)).

My .Net Core 2.0 EF class looks like

public class AffilDataContext : DbContext

Sometimes the error is different!

https://i.imgur.com/usLF6Kb.png

Any ideas? Running as admin makes no difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions