Exception throwed when creating cpp project

Hey there,

I just installed UE4 Version 4.13.1 but when I try to create a cpp project I get the following Error

An error occurred while trying to generate project files.

Running C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="D:/Unreal-Workspace/MyProject/MyProject.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
UnrealBuildTool Exception: System.ArgumentException: Illegales Zeichen im Pfad.
   bei System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   bei System.IO.Path.GetFullPathInternal(String path)
   bei System.IO.Path.GetFullPath(String path)
   bei UnrealBuildTool.FileSystemReference..ctor(String InPath)
   bei UnrealBuildTool.FileReference..ctor(String InPath)
   bei UnrealBuildTool.DynamicCompilation.RequiresCompilation(List`1 SourceFileNames, FileReference AssemblySourceListFilePath, FileReference OutputAssemblyPath)
   bei UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, List`1 SourceFileNames, List`1 ReferencedAssembies, List`1 PreprocessorDefines, Boolean DoNotCompile, Boolean TreatWarningsAsErrors)
   bei UnrealBuildTool.RulesAssembly..ctor(IReadOnlyList`1 Plugins, List`1 ModuleFiles, List`1 TargetFiles, Dictionary`2 ModuleFileToPluginInfo, FileReference AssemblyFileName, RulesAssembly Parent)
   bei UnrealBuildTool.RulesCompiler.CreateEngineRulesAssembly()
   bei UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(List`1 AllGames, ProjectFile& EngineProject, Dictionary`2& GameProjects, Dictionary`2& ProgramProjects, HashSet`1& TemplateGameProjects)
   bei UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(String[] Arguments, Boolean& bSuccess)
   bei UnrealBuildTool.UnrealBuildTool.GenerateProjectFiles(ProjectFileGenerator Generator, String[] Arguments)
   bei UnrealBuildTool.UnrealBuildTool.DoPostStartupStuffThatCanAccessConfigs(String[] Arguments)

I just can create Blueprint Projects. Any Ideas?

So long…

when its compile it crash with the same error, “invalid character in path”

If you make a blueprint project then add a c++ file to it from the menu. does that succeed?

Where is your project? what characters are in the path?

If it’s D:/Unreal-Workspace/MyProject/MyProject.uproject Try changing the hyphen “-” to an underscore “_”

I changed the Path but its not working, don’t know what to do…