Problem with No Touch Deployment

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All
I've got an app I'm trying to deploy via NTD. The problem is that when I try to run it from a client machine, it throws an exception, and the following error shows up on my host machine

An unhandled exception of type 'System.InvalidOperationException' occurred in system.windows.forms.dl

Additional information: It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application

I've done some testing and find that this exception is thrown when I try to display my 1st dialog box with. ShowDialog(

All Help greatly appreciate
 
dkelly said:
Hi All,
I've got an app I'm trying to deploy via NTD. The problem is that when I
try to run it from a client machine, it throws an exception, and the
following error shows up on my host machine.
An unhandled exception of type 'System.InvalidOperationException' occurred in system.windows.forms.dll

Additional information: It is invalid to show a modal dialog or form when
the application is not running in UserInteractive mode. Specify the
ServiceNotification or DefaultDesktopOnly style to display a notification
from a service application.
I've done some testing and find that this exception is thrown when I try
to display my 1st dialog box with. ShowDialog()
All Help greatly appreciated

This type of error usually comes from a Windows Service application. The
problem is described in the documentation for the
Environment.UserInteractive property.
 
Back
Top