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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With