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

  • Thread starter Shruti A via .NET 247
  • Start date
S

Shruti A via .NET 247

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 vb.net but failed to do it from asp.net

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 vb.net. 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 = ""
proc.Start()
and this time this exception is thrown by "proc.Start()"

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

Thanks & Regards
Shruti
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top