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

后端 未结 25 1199
情书的邮戳
情书的邮戳 2020-12-24 05:01

In Silverlight 4 app; what does this error mean?:

\"Error HRESULT E_FAIL has been returned from a call to a COM component.\"

It

25条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-24 05:56

    I encountered this same error after installing VS2019 and trying to open a large solution (20+ projects), with both vcxproj and csproj projects, that target VS2015. The csproj all loaded fine, while the vcxproj all failed with the OP's error. Deleting the .vs folder did not work.

    What did work was setting VC++'s "Fallback Location", under the "Browsing Database Fallback" settings.

    Tools (menu)
    -Options...
    --Text Editor
    ---C/C++
    ---Advanced
    ----Browsing Database Fallback
    -----Fallback Location
    

    I set mine to D:\VC++\v16. Where I use v140 for VS2015 and v141 for VS2017. Also set "Always Use" and "Do not warn".

提交回复
热议问题