简体   繁体   中英

“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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM