Posted 3 May 2021, 11:20 pm EST
After just having upgraded from AR13 to AR15, I’m trying to make use of the new pipeline licensing feature in our CI environment (as outlined here: https://www.grapecity.com/activereportsnet/docs/v15/online/licensing-with-pipelines.html)
The latest GCLM_Deploy.exe is downloaded and executed, however it freezes my build process because it tries to throw up a dialog (LicenseManagerDeploy.MainWindow) despite it not running in an interactive session. If Environment.UserInteractive is false, you should not be throwing up dialogs and instead output any messages to the console, or log file, and also use an ExitCode to represent success or failure.
When I run the dialog during an interactive session, it throws up a dialog (see attached image for screenshot). I assume it is trying to do the same during a non-interactive session.
Below is a stack trace my CI software gave after terminating the process.
[IL Method without Metadata]
at System.Windows.MessageBox.ShowCore(System.IntPtr owner, System.String messageBoxText, System.String caption, System.Windows.MessageBoxButton button, System.Windows.MessageBoxImage icon, System.Windows.MessageBoxResult defaultResult, System.Windows.MessageBoxOptions options)
at System.Windows.MessageBox.Show(System.Windows.Window owner, System.String messageBoxText, System.String caption, System.Windows.MessageBoxButton button, System.Windows.MessageBoxImage icon)
at GrapeCity.LicenseManagerDeploy.MainWindow.<MainWindow_Loaded>b__1_0(System.Object s, System.EventArgs args)
at System.Windows.Threading.DispatcherTimer.FireTick(System.Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, System.Object args, System.Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object state)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam, System.Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, System.Object args, System.Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, System.Object args, System.Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, System.Int32 msg, System.IntPtr wParam, System.IntPtr lParam)
M-->U
[IL Method without Metadata]
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(System.Object ignore)
at System.Windows.Application.RunInternal(System.Windows.Window window)
at System.Windows.Application.Run(System.Windows.Window window)
at GrapeCity.LicenseManagerDeploy.App.Main()
```[img]https://gccontent.blob.core.windows.net/forum-uploads/file-31e700a2-e319-426b-9dd9-7f2ab5701a9c.png[/img]