ERROR: UnrealBuildTool Exception: System.ArgumentException: There are invalid characters on the path

I am getting this error while creating a new C++ Basic Code Project.

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Users/Cahit/Desktop/ATS/ATS.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
ERROR: UnrealBuildTool Exception: System.ArgumentException: Yolda ge?ersiz karakterler var.
          konum: System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
          konum: System.IO.Path.GetFullPathInternal(String path)
          konum: Tools.DotNETCommon.FileReference..ctor(String InPath)
          konum: UnrealBuildTool.DynamicCompilation.RequiresCompilation(List`1 SourceFileNames, FileReference AssemblySourceListFilePath, FileReference OutputAssemblyPath)
          konum: UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, List`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors)
          konum: UnrealBuildTool.RulesAssembly..ctor(IReadOnlyList`1 Plugins, List`1 ModuleFiles, List`1 TargetFiles, Dictionary`2 ModuleFileToPluginInfo, FileReference AssemblyFileName, RulesAssembly Parent)
          konum: UnrealBuildTool.RulesCompiler.CreateRulesAssembly(DirectoryReference RootDirectory, String AssemblyPrefix, IReadOnlyList`1 Plugins, RulesAssembly Parent)
          konum: UnrealBuildTool.RulesCompiler.CreateEngineRulesAssembly()
          konum: UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(List`1 AllGames, ProjectFile& EngineProject, ProjectFile& EnterpriseProject, Dictionary`2& GameProjects, Dictionary`2& ModProjects, Dictionary`2& ProgramProjects, Dictionary`2& TemplateGameProjects, Dictionary`2& SampleGameProjects)
          konum: UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Arguments)
          konum: UnrealBuildTool.UnrealBuildTool.GuardedMain(String[] Arguments)

Note: “Yolda ge?ersiz karakterler var.” means “There are invalid characters on the path”.

But I can’t see any invalid characters on the path. I also tried to create the project directly on C drive.

There was no problem with the version 4.18. I also checked the Cisual Studio installation. I have all the required Windows SDK versions.

Can you help me?

I have the same error in ue4.23.1, I’ve renamed root file name, but it’s useless