Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

vcruntime140.dll error when loading game build

Discussion in 'Editor & General Support' started by unity_aB0ViU4X_pf-Cg, Sep 18, 2020.

  1. unity_aB0ViU4X_pf-Cg

    unity_aB0ViU4X_pf-Cg

    Joined:
    Feb 11, 2019
    Posts:
    28
    I am using Unity 2020.1.6f1, I'm working on a game and built a developer version incase I get any crashes I can see the errors. I also have a version of the game build with Unity 2019.1.4f1. I had some issues with the old version of the game so I upgraded to Unity 2020 and completely redid the game including rewriting most of the scripts with more efficient code. I have 4 computers I can test the game on 2 are PC's and 2 are laptops. The Unity 2019 game version loads and starts fine on all 4 computers. The Unity 2020 version only loads on 3 of the computers. The older laptop is running an older version of Windows 10. Windows 10 version 1803, OS build 17134.376 gets an error when loading the game, vcruntime140.dll. The 3 other computers are running Windows 10 version 2004, OS build 19041.508.

    The older computer will run the game fine with the Unity 2019 build, but not the Unity 2020 build. Not sure why the new version of the game will not start up on that one computer. The older laptop is not used much anymore, which is why its not updated. I figured I would test it on an older version of Windows to check compatibility.

    Any ideas?
     
  2. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
    wardi258 likes this.
  3. unity_aB0ViU4X_pf-Cg

    unity_aB0ViU4X_pf-Cg

    Joined:
    Feb 11, 2019
    Posts:
    28
    I updated the laptop with the latest security updates and the latest Visual C++ Redistributables and it fixed it, Thanks.
     
  4. beralios

    beralios

    Joined:
    May 12, 2020
    Posts:
    2
    Goodmorning everyone .

    I use Unity 2019.4.18f and have been having problems with the vcruntime140_1.dll library.

    I would like to ask a question:

    This library is used for the generation of executables (on windows, linux, etc ..), or is it used by the editor during the development and run phase?

    The Unity version I downloaded
    from website doesn't install the vcruntime140_1.dll.

    I had to install it independently from the microsoft site indicated by "Mauri".

    Why?

    Thanks in advance.
     
  5. Bit0nic

    Bit0nic

    Joined:
    Mar 8, 2021
    Posts:
    2
    You need to install the Microsoft Visual C++ 2015 Redistributable Update 3 RC from the link supplied in the marked as answer reply to this thread, the 32bit version download and install of the data link library will be the most likely one that you will need, even if you are using a 64bit system, however, if the app that needs the file to run was developed for a 64bit OS only then you will need the 64bit version. You can install both versions on a 64bit system as a 64bit system will run both 32bit and 64bit apps and/or programs.

    Here is the link again, for your convenience.

    https://geeksadvice.com/fix-vcruntime140-dll-is-missing-error-on-windows/
     
  6. wardi258

    wardi258

    Joined:
    Jan 22, 2020
    Posts:
    1
  7. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
    Glad it worked. Visual C++ Redistributables are important because apps use these. Never uninstall them or your apps may not run anymore (until you install those redistributables again, that is).

    Also, should someone stumble across some similar message but with a missing
    msvcp110.dll
    file instead, download and install the "Visual Studio 2012 (VC++ 11.0) Update 4".
    .
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,504
    Note that Unity builds should never require any files that don't come with the OS. In fact, we recently uncovered a bug where development builds won't run without VS2015 C++ redistributable: https://issuetracker.unity3d.com/is...windows-standalone-development-build-is-built

    Thankfully, this bug doesn't affect non-development builds.

    Editor, on the other hand, depends on a bunch of stuff but Unity's installer automatically installs them all.
     
    Threeyes likes this.
  9. Haxel0rd

    Haxel0rd

    Joined:
    May 20, 2021
    Posts:
    49
    For others that come across this (where above is no solution)

    in my case the problem was that i had set the built to "Universal Windows Plattform", which i confused with a Windows .exe build. In fact though, UWP yields an "AppX" .exe file app, which is not same as windows .exe file and only meant for publishing in the WindowsApp Store. If you want a Windows .exe for running on PC, then switch the build Platform to "Windows,Mac and Linux":



    Note that this is not the exact source of problem that the OP Poster had, but i found this forum thread back when looking for a solution, so i wanted to add that here. In my case, AppX also yielded an .exe, but i couldnt run it and had the same errors that OP described (just the source of error was different).

    Thanks & best.
     
    Last edited: Jul 26, 2023
    jolyn_w likes this.