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

Cao Cuong 0 Reputation points
2024-04-08T18:36:12.24+00:00

When i try to create a new project asp.net web application mvc on VS 2022. and this happen

I have tried:

  1. Repair VS.
  2. Update VS to the latest version.
  3. Reset Visual Studio settings(run devenv /ResetSettings in Developer Command Prompt for Visual Studio 2022).
  4. Reinstall the ASP.NET and web development workload from VS Installer > Modify > Workloads > uncheck the workload > Modify > check it again > Modify.
  5. Start —> Run —> regsvr32  %SystemRoot%\System32\msxml3.dll Start —> Run —> regsvr32  %SystemRoot%\SysWOW64\msxml3.dll

I have tried the above methods but still get that errorUser's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,616 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2024-04-09T06:47:23.93+00:00

    Hello @Cao Cuong,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    I noticed that some forum members got the same error. It’s possible that this is a potential issue, I would recommend you also submit a ticket(with necessary information) on our Developer Community for further investigate.

    Currently, you can try following methods:

    1. Update Windows OS and make sure that there’s no Windows Update error.
    2. Try the .NET Framework Repair Tool.
    3. Try to download, install and use .NET Framework 4.8(Developer Pack).
    4. Try to run VS as administrator.
    5. Reinstall Visual Studio 2022.

    Kind Regards,

    Tianyu


    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.