Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FabActUtil.exe exits with code -1

I'm getting the following error on all builds including Service Fabric packages now:

build\Microsoft.ServiceFabric.Actors.targets(34,5): 
error MSB3073: The command ""\Build\x64\Debug\\FabActUtil.exe"
/app:"\ApplicationPackageRoot" /spp:"PackageRoot" /t:manifest /ap:"Project"
/sp:"Project1" /in:"..\Build\x64\Debug\\Project1.Exe"
/local5nodeappparamfile:"ApplicationParameters\Local.5Node.xml" 
/local1nodeappparamfile:"ApplicationParameters\Local.1Node.xml" " 
exited with code -1.

Running on Service Fabric 5.2.207, SDK 2.2.207

What is code -1 for FabActUtil.exe and is there any way to get better error output on this event?

like image 776
Dagrooms Avatar asked Oct 19 '16 15:10

Dagrooms


1 Answers

Running the command from the error message outside of Visual Studio gave the following message with a stack trace:

System.ArgumentException: An item with the same key has already been     
added. 
  at System.ThrowHelper.ThrowArgumentException(ExceptionResource 
resource) 
  at System.Collections.Generic.Dictionary`2.Insert(TKey key, 
TValue value, Boolean add) 
  at Microsoft.ServiceFabric.Actors.Generator.ManifestGenerator.Context.LoadExistingContents() 
  at Microsoft.ServiceFabric.Actors.Generator.ManifestGenerator.Generate(Arguments arguments) 
  at FabActUtil.Tool.GenerateOutput(ToolContext context) 
  at FabActUtil.Program.Main(String[] args)

This was due to the ApplicationManifest.xml having a repeated definition for one of the default services.

Thanks to amanbha: https://github.com/amanbha

like image 95
Dagrooms Avatar answered Nov 07 '22 18:11

Dagrooms