Error detecting Visual Studio

Hi, I don’t know where to put this. I just installed unity 2021.2.7f1 I’m getting this error
Error detecting Visual Studio installations: System.ComponentModel.Win32Exception (0x80004005): ApplicationName=‘D:\All-Repository’s\infinite_runner_repository\Testing123\Library\PackageCache\com.unity.ide.visualstudio@2.0.12\Editor\VSWhere\vswhere.exe’, CommandLine=‘-prerelease -format json -utf8’, CurrentDirectory=‘’, Native error= The system cannot find the file specified.

UnityEngine.Debug:LogError (object)
Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor:smile:iscoverInstallations () (at Library/PackageCache/com.unity.ide.visualstudio@2.0.12/Editor/VisualStudioEditor.cs:59)
Microsoft.Unity.VisualStudio.Editor.AsyncOperation`1<Microsoft.Unity.VisualStudio.Editor.IVisualStudioInstallation[ ]>:b__6_0 (object) (at Library/PackageCache/com.unity.ide.visualstudio@2.0.12/Editor/AsyncOperation.cs:38)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

Did you ever find a solution for this?

Hi yes, I had the Unity project file in a folder that had an ’ in it. folder name “All Repositorie’s” I change it to “All Repositories” and it started working right. hope this helps

3 Likes

Life saver, it took me WAY to long to find this solution.

1 Like