Visual Studio 2019--Exception from HRESULT 0x80041fe4

Viewed 14654

Every time I try to create a new "ASP.NET Web Application (.NET Framework)" project, as soon as I get to the page where I select from Empty, Web Forms, MVC etc and select Web Forms, I get a popup saying

Exception from HRESULT: 0x80041fe4

I'm able to continually try creating these with no luck. I've deleted the folder and retried, I've uninstalled Visual Studio and reinstalled it, all to no avail.

3 Answers

Cora - I encountered the same issue and your steps worked. After VS2019 created the solution folder, I closed it and relaunched it. The second time through, creating the solution and project using exactly the same name it successfully created the solution and project.

I encountered the same error when trying to create a C# console app project. I used the steps in JJ Lay's answer to work around the issue. To be clear, these are the steps that I used:

  1. Attempt to create a C# console app project (for example, named "TestProj" in Visual Studio 2019
  2. Encounter 'Exception from HRESULT 0x80041fe4'
  3. Close Visual Studio 2019
  4. Open Visual Studio 2019
  5. Use the same exact steps and name as in step 1 (for example, "TestProj") and try to create the project again
  6. Project is created successfully this time

I fixed it by closing closing open window and creating a new project in fresh visual studio

Related