By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,581 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

Killing and Starting IIS and a VB.Net process using ASP.Net

P: n/a
hello group

I have recently started working on .Net platform.
I am facing one problem in killing and starting process from my aspx page.
I am able to kill and start the same process from but failed to do it from

the exception that i am getting is :: "Couldn't get process information from remote machine."

although i am doing it from the same machine from where i did it successfully using don't know the route cause of the problem.
this exception is thrown at following lines::

Dim Process array[] = new Process.GetProcessesByName("MY_SRVR")

I even replaced this statement with :::

Dim Process array[]= new Process.GetProcesses
even then i am getting the same exception

I even tried hardcoding the values :::

Dim proc As New Process()
proc.StartInfo.FileName = "MY_SRVR.exe"
proc.StartInfo.Arguments = ""
and this time this exception is thrown by "proc.Start()"

Please help me at your earliest. This is very urgent requirement.

Thanks & Regards
From: Shruti A

Posted by a user from .NET 247 (

Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.