Visual Studio 2015: Failed to connect to Build Service

After copying my project to 4.11 I get the following error in VS2015:

Failed to connect to Build Service (on local machine): Server is not reachable

Does anyone know what causes this error?

Hello MrMastermindNL,

I have a few questions for you about this issue.

  1. What build configuration are you building for? Such as Development Editor, or DebugGame.
  2. Are you using 4.11 from the Epic Games Launcher or a build that you built from our source on Github?
  3. Have you tried building a brand new C++ project in 4.11 to see if that works?
  4. What version of Windows are you using?

Hi ,

Thanks for the quick response, see my answers below.

  1. I’m using Development Editor to build

  2. I’m using 4.11preview6 from the launcher

  3. Creating a new C++ project gives the following error:

    The project could not be compiled. Would you like to open it in Visual Studio?

    Running C:/Program Files/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe TestCplusplus Development Win64 -project=“E:/Projecten/Unreal/TestCplusplus/TestCplusplus.uproject” -editorrecompile -progress -noubtmakefiles -NoHotReloadFromIDE -2015
    @progress push 5%
    Parsing headers for TestCplusplusEditor
    Running UnrealHeaderTool “E:\Projecten\Unreal\TestCplusplus\TestCplusplus.uproject” “E:\Projecten\Unreal\TestCplusplus\Intermediate\Build\Win64\TestCplusplusEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -installed
    Reflection code generated for TestCplusplusEditor in 2.6753257 seconds
    @progress pop
    Distributing 7 actions to XGE
    Fatal Error: Failed to initiate build.

    Failed to connect to Build Service (on local machine): Server is not reachable

    ERROR: UBT ERROR: Failed to produce item: E:\Projecten\Unreal\TestCplusplus\Binaries\Win64\UE4Editor-TestCplusplus.dll
    XGE execution time: 10.51 seconds

  4. I’m using Windows 10

Thank you for that information. I’ve never seen this error message before unfortunately and actually can’t seem to find much about it. The little bit that I did find seemed to be caused by firewalls or virus-protection software. Could you try disabling any of these types of software you have on your computer temporarily to see if they are conflicting with the IDE? Also, be sure that everything related to UE4 and VS is being run as administrator.

If neither of those help, just so that we can narrow it down a bit more, can you try building a basic code project outside of UE4, such as a Hello World program in 2015? This’ll let us know that the problem is between VS and the Engine instead of just a problem with VS itself or installed SDKs.

I should’ve asked this previously but have you used any previous versions of the engine where you didn’t have any issues? Are these issues new to 4.11 for you?

Thanks . Although I’m not running a firewall or virus-protection, it used to work before.

I can build a C++ console application “Hello world”.

I also used 4.8, 4.9 and 4.10 without any issues. Although 4.8 and 4.9 where in VS2013.

I think this started when I cloned the Henry project, it seemed to have added Incredibuild to my system. I did disable the agent and uninstalled the addons for VS2015. Not sure where to go from here. I couldn’t find a proper way to uninstall Incredibuild completely.

Hi ,

I think I solved it. I found out how to properly uninstall Incredibuild from my machine. Now everything is fine again.

Sorry for taking your time solving this…

what things did you do to solve this problem? i met the same thing

You must go in uninstall program : go in control panel → Uninstall → Incredibuild

Just uninstall Incredibuild. Go to Control Panel → Programs and Features-> select Incredibuild → Uninstall. It solved my problem.

worked like a charm