- Home /
"The code execution cannot proceed because msvcr120.dll was not found"
Today I updated my Unity Hub and editor only to find that I could not longer create or open projects. I have been working on fixing this all day. The hub either silently fails (in 3.x version) or silently crashes (in 2.x version). The logs don't seem to say anything useful. The only error message I get is when I try and launch the editor directly, which yields the message in the title.
I have tried:
Logging in and out
Changing my Unity license from student to individual
Reinstalling Unity
Absolutely purging anything called "unity" in Program Files, ProgramData, and AppData from my system before reinstalling
Uninstalling and reinstalling the VC++ Redistributable
Uninstalling and reinstalling Visual Studio
Installing and using a different version of the editor
Installing a different version of Visual Studio and VC++ Redistributable
I am about to delete Windows and reinstall my operating system just to fix this. Can anyone out there give me any advice.
Well let's try to narrow down the troubleshooting path a bit and hopefully we can find a better solution then reinstalling windows.
First check, Does MSVCR120.dll exist under C:\windows\system32 directory?
If not do you have that file anywhere else on your hard drive?
Yes, it is in that directory. I also need to say that, of course, as all issues go, the moment I cave and make a forum post about it, it resolves itself. I don't really know what I did, but everything is working now. For posterity (in case others are having this issue), the last two things that I did before making this post were to 1) Switch to the 2.x version of the hub and 2) Install an older version of the editor from there. This seems to have fixed the newest version of the editor for me, so go figure why, or how, or what the issue even was.
Happy you managed to solve it, even if it's sad that were will never know the exact reason. For future reference when you get a message like this it common that the dll file is missing under system32 for some reason. It can also exist there but not have been registered for some reason (can be fixed by starting a command prompt with ad$$anonymous$$istrator privileges, going to the directory and typing regsvr32 nameofdll.dll)
Your answer
![](https://koobas.hobune.stream/wayback/20220613051052im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why Unity correctly builds a project but the editor freezes on the Build Progress window? 2 Answers
Coroutine works in editor, but not in build Windows application 0 Answers
Difference between differrent csproj files (there are 3) in a unity editor (rider) 1 Answer
How can I get Unity to automatically import a package? 1 Answer
How to know if I'm running UNITY_EDITOR on Windows or Mac? 4 Answers