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.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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.
Method 2
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:
- Attempt to create a C# console app project (for example, named “TestProj” in Visual Studio 2019
- Encounter ‘Exception from HRESULT 0x80041fe4’
- Close Visual Studio 2019
- Open Visual Studio 2019
- Use the same exact steps and name as in step 1 (for example, “TestProj”) and try to create the project again
- Project is created successfully this time
Method 3
I fixed it by closing closing open window and creating a new project in fresh visual studio
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0