Visual Studio 2019 can't run (ucrtbased.dll)

Shervan360 1,661 Reputation points
2020-11-14T16:31:52.693+00:00

Hello,

I'd like to run the Console C++ app and I have an error.

Microsoft Visual Studio Enterprise 2019
Version 16.8.1
VisualStudio.16.Release/16.8.1+30711.63
Microsoft .NET Framework
Version 4.8.04084

Edition Windows 10 Enterprise
Version 20H2
Installed on ‎6/‎17/‎2020
OS build 19042.630
Experience Windows Feature Experience Pack 120.2212.31.0

(Windows 10 SDK was installed)

39799-screenshot-2020-11-14-113022.jpg

39847-screenshot-2020-11-14-144452.jpg

39882-screenshot-2020-11-14-144824.jpg

39777-screenshot-2020-11-14-144908.jpg

Developer technologies | Visual Studio | Debugging
Developer technologies | C++
0 comments No comments
{count} votes

Accepted answer
  1. Darran Rowe 2,066 Reputation points
    2020-11-15T06:51:32.29+00:00

    One big thing that you haven't mentioned is, did VS 16.8 also install the Windows 10 2004 SDK? Check under the Individual Component list to see if the SDK 10.0.19041.0 is installed.

    39901-2020-11-15.png

    This is important because the version of ucrtbased.dll that ends up being copied to System32 and SysWoW64 is from the latest installed Windows 10 SDK. This means that if you have two SDKs installed and the setup for the latest one failed somehow, then it is possible to not have these files in the locations that Windows would look in for executables.

    I would honestly suggest that you just do a repair install for Visual Studio 2019 16.8. This will do a repair on all installed SDKs too.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sean Liming 4,766 Reputation points Volunteer Moderator
    2020-11-14T16:45:07.663+00:00

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.