Services don't run in the default windows station, so any GUI you display will not be seen by the interactive user. There is a whole lot of info on this subject on MSDN and in the DCOM list archives. I'm also pretty sure there was at least one MSDN magazine article on this subject.
-Ethan -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Nischal Muthana Sent: Monday, May 06, 2002 7:51 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Executing an exe from Windows Service. Hi All I have a Windows Service(say TestService.exe) with OnStart event. I have another Windows Forms Application (say TestForms.exe). I want to execute TestForms.exe on the OnStart event of the TestService WindowsService. I tried to use in the OnStart event System.Diagnostices.Process.Start(@"C:\TestForms.exe), this resulted in an error. I also tried to copy the TestForms.exe to the System32 directory and execute but no success. Can someone help me in guiding the right way. Appreciate any help. Thanks Nischal You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.