Hi!,
I am developing a windows service using vb.net in VB 2005.Through the service I am trying to run a exe.While starting service I am getting
the following error:
System.InvalidOperationException
An error occurred creating the form. See Exception.InnerException for details. The error is: 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.
For running the exe i have written the bellow code :
Dim startInfo As System.Diagnostics.ProcessStartInfo
Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnostics.ProcessStartInfo("C:\Acumen Batch Services\AcumenBatchAdministrator\bin\AcumenBatchA dmin.exe")
pStart.StartInfo = startInfo
pStart.Start()
Please advice me..
Thanks & regards,
Monish