Visual Studio reports Error HRESULT E_FAIL has been returned from a call to a COM component when viewing a Windows Form
You may see an issue whereby Visual Studio reports the following when viewing a Windows Form
Error HRESULT E_FAIL has been returned from a call to a COM component
There are a number of fixes on the internet however none of them resolved the issue.
On inspecting the designer.cs files for the affected forms we found errors stating that types from the projected conflicted with types imported from... the project...
This seemed strange however found found that Visual Studio had in fact added a reference to the binary created by the project into the project without our doing anything.
The Visual Studio WinForms designers are notoriously problematic with unpredictable things like this happening.
Having removed the reference the problems went away.
Comments
Post a Comment