Reputation: 137
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?
Upvotes: 11
Views: 11420
Reputation: 8880
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.
Upvotes: 10