How to fix an error in Visual Studio error hresult e_fail from a call to a com component

TOMAS ALBERTO GOMEZ GARRO 0 Reputation points
2024-02-02T20:52:23.37+00:00

Good afternoon, I am currently encountering this error when trying to create an ASP.NET Web Application (.Net Framework) project. And I tried this forum, but it didn't solve it: https://learn.microsoft.com/en-us/answers/questions/1380834/no-me-deja-crear-proyectos-asp-net-y-me-sale-el-er I already uninstalled everything and reinstalled it, what can I do? I attach evidence of the error, I am using the community version of Visual studio 2022User'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.
5,196 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,050 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 54,816 Reputation points
    2024-02-02T21:23:11.5166667+00:00

    I would recommend you follow option 4 in the other post where you run VS with /log and then look at the generated activity log file. You should also take a look at the Event Log in Windows to see if it recorded the error. Another thing to consider is that it may be one of your custom extensions that you have installed so disable any extensions you're using first, restart VS and try again. Note that this is similar to what /safemode does but I don't think you can create an ASP.NET project in safemode. Does this happen for non-ASP.NET projects? In other words can you create a class library or console app project?

    0 comments No comments

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.