I had a similar error and fixed it by:
- Making sure you have Automation Tool compiled.
- Copy AgentInterface.dll from Engine/Binaries/.DotNET to Engine/Binaries/Win64.
- Make sure you have UnrealLightMass.exe added to trusted applications on your Firewall.
Hope this helps somebody.