# Microsoft Visual C++ Runtime Library Error! - (Resolved)

**URL:** <https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331>\
**Category:** Lighting & Global Illumination\
**Tags:** Question, Bug\
**Created:** [August 6, 2022, 6:22pm UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331 "2022-08-06T18:22:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_babayev](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@e\_babayev](https://discussions.unity.com/u/e_babayev)\
**Post date:** [August 6, 2022, 6:22pm UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/1 "2022-08-06T18:22:42Z")

</div>

Hello friends!

I would like to tell you about a problem I encountered with the Unity game engine. As a result, I couldn’t find the solution on the internet for a long time. But I finally got it done. The reason I share this problem here is to help friends who have the same problem in the future. If the solutions in other areas did not work for you, this solution will probably help you.

This was exactly the problem: I was getting the “Microsoft Visual C++ Runtime Library Error!” error when trying to bake the lightmap in Unity.

My computer uses windows 10, 64-bit operating system. For this reason, I installed the latest version of Microsoft Visual C++ x64. According to the information I read somewhere, it is enough to install only the x86 version on x86 systems. Since my system is x64, I need to install both x64 and x86. I installed a Microsoft Visual C++ x64 and an 86 on the computer. This issue has been resolved.

 ![8342391--1097250--Unity Microsoft Visual C++ Runtime Library Error.jpg](https://europe1.discourse-cdn.com/unity/original/4X/a/6/7/a67cef366ef678461c5942ca2109b7e71a1a0f7f.jpeg)

---

<div class="post-metadata">

**Author:** ![Kurt-Dekker](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/kurt-dekker/32/101578_2.png) [@Kurt-Dekker](https://discussions.unity.com/u/Kurt-Dekker)\
**Post date:** [August 6, 2022, 6:25pm UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/2 "2022-08-06T18:25:14Z")

</div>

> [@e\_babayev](#):
>
> My computer uses windows 10, 64-bit operating system. For this reason, I installed the latest version of Microsoft Visual C++ x64. According to the information I read somewhere, it is enough to install only the x86 version on x86 systems. Since my system is x64, I need to install both x64 and x86. I installed a Microsoft Visual C++ x64 and an 86 on the computer. This issue has been resolved.

That sounds like a Unity bug… perhaps Unity isn’t including the required runtime distributables?

If you report it here nothing will change.

If you file a bug (Help → Report a bug) it might get fixed.

---

<div class="post-metadata">

**Author:** ![e\_babayev](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@e\_babayev](https://discussions.unity.com/u/e_babayev)\
**Post date:** [August 6, 2022, 6:47pm UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/3 "2022-08-06T18:47:54Z")

</div>

> [@Kurt-Dekker](#):
>
> That sounds like a Unity bug… perhaps Unity isn’t including the required runtime distributables?
> 
> If you report it here nothing will change.
> 
> If you file a bug (Help → Report a bug) it might get fixed.

I don’t know about it, but I tried baking the lights on the 2021 version, this problem appeared. I said maybe there is a bug in the 2021 version. I installed the 2020 version and tried it. Same thing happened. I tried many solutions written on the internet, the problem was not solved. I installed the computer next to x64 and also x86. It’s been two days and the problem seems to be resolved.

---

<div class="post-metadata">

**Author:** ![THE2FUN](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/the2fun/32/594117_2.png) [@THE2FUN](https://discussions.unity.com/u/THE2FUN)\
**Post date:** [November 22, 2023, 11:03am UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/4 "2023-11-22T11:03:56Z")

</div>

> [@e\_babayev](#):
>
> Hello friends!
> 
> I would like to tell you about a problem I encountered with the Unity game engine. As a result, I couldn’t find the solution on the internet for a long time. But I finally got it done. The reason I share this problem here is to help friends who have the same problem in the future. If the solutions in other areas did not work for you, this solution will probably help you.
> 
> This was exactly the problem: I was getting the “Microsoft Visual C++ Runtime Library Error!” error when trying to bake the lightmap in Unity.
> 
> My computer uses windows 10, 64-bit operating system. For this reason, I installed the latest version of Microsoft Visual C++ x64. According to the information I read somewhere, it is enough to install only the x86 version on x86 systems. Since my system is x64, I need to install both x64 and x86. I installed a Microsoft Visual C++ x64 and an 86 on the computer. This issue has been resolved.

THANKS! IT WORKED

---

<div class="post-metadata">

**Author:** ![ahmetbozkurtjoygame](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@ahmetbozkurtjoygame](https://discussions.unity.com/u/ahmetbozkurtjoygame)\
**Post date:** [December 14, 2023, 10:54am UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/5 "2023-12-14T10:54:48Z")

</div>

> [@THE2FUN](#):
>
> THANKS! IT WORKED

Unfortunately it does not solve the issue. Any help?

---

<div class="post-metadata">

**Author:** ![irtazaqureshi791](https://avatars.discourse-cdn.com/v4/letter/i/839c29/32.png) [@irtazaqureshi791](https://discussions.unity.com/u/irtazaqureshi791)\
**Post date:** [February 8, 2025, 11:28pm UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/6 "2025-02-08T23:28:56Z")

</div>

I am not sure if anyone else is facing this issue anymore but i had it today and after searching around i figured out

if you go into control panel \> programs\> programs & features \> You will see one , two or 4 different visual studio C++ distributables

All you have to do is take a screenshot ( to remember what you uninstall)

and then uninstall them by double clicking

and reinstall them all and then restart you device

It should work

---

<div class="post-metadata">

**Author:** ![recdeafboy288](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@recdeafboy288](https://discussions.unity.com/u/recdeafboy288)\
**Post date:** [September 21, 2025, 3:44pm UTC](https://discussions.unity.com/t/microsoft-visual-c-runtime-library-error-resolved/890331/7 "2025-09-21T15:44:25Z")

</div>

tried do all these and nothing. error happen when starting unity edior
