Penghe Geng
Penghe Geng

Reputation: 14611

Fresh installed Visual Studio 2017 won't create C++ project with error 0x80041fe2

I just installed Visual Studio 2017 (current time: August 2018). I only need C++ so I picked C++ component and deselected everything listed in "optional" items. Then after the installation, I cannot even create any C++ projects including both console and desktop projects. It gives me a error dialog of "Exception from hresult 0x80041fe2".

I did a search online. This question, visual studio and qt: HRESULT: 0x80041FE2, seems close but it's QT related, so it's different.

I did eventually find a solution. Will answer my own question below.

Upvotes: 1

Views: 2586

Answers (1)

Penghe Geng
Penghe Geng

Reputation: 14611

It turns out this is probably a Visual Studio installation bug. The "Optional" components are really not totally optional. I then picked the following Optional components and then it works:

  • Just-in-Time debugger
  • VC++ 2017 version 15.8 v14.15 latest v141 tools
  • C++ profiling tools
  • C++/CLI support
  • VC++ 2015.3 v14.00 (v140) toolset for desktop

Almost certainly not all of these are needed. But I don't want to spend time to find out which "Optional" is actually not optional...

Upvotes: 1

Related Questions