Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

“Error HRESULT E_FAIL has been returned from a call to a COM component” windows forms c#

I am making a desktop application in windows forms and i dont know why appear the error:

“Error HRESULT E_FAIL has been returned from a call to a COM component”

On the designer of all my user controls and windows.

I know that are others threads with this problem but i checked them and i didnt get a solution.

I tried deleting ProjectTemplateCache and clearing the build and rebuild but it doesnt work. I read that i can delete .suo and .user files but in my project folder doesnt exists that fields. I am using Visual Studio 2015.

Someone knows how to fix it?

like image 862
Patricio Diaz Avatar asked Aug 23 '16 03:08

Patricio Diaz


1 Answers

Also had this problem.

As said in the comments, the solution was to track down a reference to the project itself and get rid of it - there's no sense behind it.

It was a bit tricky to find it first since the reference name changed meanwhile and was not the same as the project anymore, so make sure to keep that in mind.

like image 114
Ray Avatar answered Nov 05 '22 07:11

Ray