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

CARLOS LUIS RICHARDSON MENDEZ 0 Reputation points
2024-02-05T02:38:55.31+00:00

I'm trying to create a service application with WCF, when I get this error. User's image

I have tried multiple solutions that I saw online, such as adding this assembly gacutil -i Microsoft.VisualStudio.Shell.Interop.11.0.dll in the global assembly cache. I have reinstalled visual studio twice from 0. I have cleared the visual studio cache. I do not know what to do... I have attached the log file below. test04.xml

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. QiYou-MSFT 4,326 Reputation points Microsoft External Staff
    2024-02-08T07:42:58.97+00:00

    Hi @CARLOS LUIS RICHARDSON MENDEZ

    I searched a lot. Usually people who run into this problem are opening up other projects. If you're having trouble creating a project, it's possible that some of your files are corrupted or unregistered.

    Try this solution:

    Start —> Run —> regsvr32 %SystemRoot%\System32\msxml3.dll

    Start —> Run —> regsvr32 %SystemRoot%\SysWOW64\msxml3.dll

    Best Regards

    Qi You


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.