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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,918 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,192 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,009 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,889 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QiYou-MSFT 4,321 Reputation points Microsoft Vendor
    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.