ArcGISSignAddIn in Build Action generating dialogs

594
3
05-03-2019 02:23 PM
DanielRouleau
New Contributor III

Hello, I have been reliably using the steps outlined in the following help doc to sign our ArcGIS Pro Add-Ins with no problems, until recently.

https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Digitally-signed-add-ins-and-configurations

Lately, when attempting to run ArcGISSignAddIn.exe with the parameters suggested, I am getting a failure because a dialog is attempting to display and I am running headless in an Azure DevOps build pipeline. The version of Pro I'm using is 2.3.2, has there been any change in how this tool is working that would explain the behavior? Exception I get is copied below but not super informative as it doesn't display what the dialog was attempting to tell me. I can't pinpoint at exactly which release this stopped working but I see several builds that successfully signed the end of last year on Pro 2.2.

Unhandled Exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
at ArcGISSignAddIn.SignAddInHandler.OutputMsg(String msg)
at ArcGISSignAddIn.SignAddInHandler.CommandLineSignAddIn(String[] args)
at main(String[] args)

0 Kudos
3 Replies
UmaHarano
Esri Regular Contributor

Hi Daniel,

Nothing new has been added to the ArcGISSignAddIn.exe at 2.3.2. I tested using this version of Pro and I was able to sign the add-in.  No exception was thrown.

0 Kudos
DanielRouleau
New Contributor III

Thanks Uma, I should note, when I run same command on my development desktop, I get a dialog like this presented, which is also new behavior that I hadn't seen before, is this dialog expected? I specified a pfx and password in my commandline and specified /s which I'd have assumed would run everything silently. Nothing with the pfx or cmd-line parameters has changed on our end recently.

arcgissignaddin cmd line dialog

0 Kudos
FredericPoliart_EsriAU
New Contributor III

Have you managed to resolve this issue?
It looks like Fiddler is running.

0 Kudos