prem_rajani
Member
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:
Am I doing anything wrong. I tried calling another application that works fine but nothing opens up.
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.