469,319 Members | 2,421 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

getting error while try to run a exe from Windosw service


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:


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

Please advice me..

Thanks & regards,
Aug 17 '07 #1
0 980

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by trialproduct2004 | last post: by
2 posts views Thread by William Gower | last post: by
3 posts views Thread by Greg Noss | last post: by
7 posts views Thread by michael sorens | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.