Opening IE with help of Windows Service

prem_rajani

Member
Joined
Jul 19, 2005
Messages
22
Location
Coimbatore
Programming Experience
3-5
Hi,

When the service stops I call process to open IE. But as it stops I get message "it cannot stop due to time out something like that"

Why does it happen like that?

The code is as follows:

VB.NET:
[SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Protected[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Overrides[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Sub[/COLOR][/SIZE][SIZE=2] OnStop()
[/SIZE][SIZE=2][COLOR=#0000ff]        Dim[/COLOR][/SIZE][SIZE=2] MyProcess [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] Process
        MyProcess = Process.Start("http://ctsinmvccata/odemvc/")
[/SIZE][SIZE=2][COLOR=#008000]        'MyProcess.WaitForExit()
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#008000]        'MyProcess.Close()
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Sub
[/COLOR][/SIZE]

Am I doing anything wrong. I tried calling another application that works fine but nothing opens up.
 
you cant make the process to appear. do the process i tell, go to services -> right click -> log on -> click the check box allow to interact with the desk top u find the solution.
with regards,
Naresh
 
Well I did set that in programming. But still IE doesn't open.

I thought may be I'm making mistake and so same code tried it in forms it works.

So please can you anyone say is it some problem with windows services.
 
Back
Top