Error generate vs project files

whenever i generate solution(.sln) file this error occur.

Running C:/Program Files/Epic Games/UE_4.20/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“C:/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress -log=C:\Unreal Projects\MyProject/Saved/Logs/UnrealVersionSelector-2018.10.03-17.12.00.log
ERROR: UnrealBuildTool Exception: Unable to open log file for writing (C:\Unreal)

what should i do?

I am also running into this problem as of tonight and cannot get it to work.

Same here…

I am also having this issue.

reinstalling did not solve the issue

This seems to be a white space bug. Instead of “C:/Unreal Projects/…” it stops at “C:/Unreal” as you can see from the message.
This question is duplicate to This one and this one.