Jump to content

Running Scribe Workbench from command line: /RS switch is not suppressing the Run Status modal window


Hunter Harwood

Recommended Posts

Trying to run a Scribe Workbench script in an unattended fashion. I can run this script in an interactive session without issue, but I'm guessing that the Run Status window that comes up (even with the /RS switch on the command line) causes the unattended run to fail, as Windows does not like modal windows or forms to appear in a Non-Interactive session. Is there some way to run a script that does not display any modal windows or forms Note that Scribe Console is not an option.

 

Error Message:

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.Form.ShowDialog(IWin32Window owner)

at System.Windows.Forms.Form.ShowDialog()

at Scribe.DynamicsCrm5.Adapter.GUI.PleaseWaitDialog.LoadPleaseWaitDialog()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext ContextCallback callback Object state Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext ContextCallback callback Object state Boolean preserveSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext ContextCallback callback Object state)

at System.Threading.ThreadHelper.ThreadStart()

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...