. Advertisement .
..3..
. Advertisement .
..4..
The error
"Error HRESULT E_FAIL has been returned from a call to a COM component".
occurred when I debug my project migrated from Visual Studio 2010 to 2012. I’ve tried to fix it for some days but have not resolved it yet. Can someone suggest a relevant solution to fix the ”error hresult e_fail has been returned from a call to a com component” issue? Much appreciate your support.
The cause:
While developing or debugging a project of web application, the Microsoft Visual Studio 2010 IDE gets a trouble. The corrupted Cache of Visual Studio 2010 is the reason of this error.
Solution:
To solve this trouble, you have to exclude the csproj.user files. In other instances, you can fix this error by checking “Auto-assign Port” and “Use Visual Studio Development Server” on the Web tab of the project properties. After that, you must restart Visual Studio and recreate the project. Your program will work well.
The same problem occurred to me with Visual Studio 2019’s c++ project.
This worked for me: