Error HRESULT E_FAIL has been returned from a call to a COM component VS2012 when debugging

I removed the csproj.user files and it worked for me.

In some other cases, to fix this error, I go to Web tab in the project properties and check “Use Visual Studio Development Server” and “Auto-assign Port”. After that I need to rebuild the project and restart VS

Leave a Comment