473,883 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.GetProc essesByName("MY _SRVR")

I even replaced this statement with :::

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

I even tried hardcoding the values :::

Dim proc As New Process()
proc.StartInfo. FileName = "MY_SRVR.ex e"
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 (http://www.dotnet247.com/)

<Id>fz/J+2+huEmuNm10s0 eBNw==</Id>
Nov 18 '05 #1
0 1155

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Stephen Boulet | last post by:
This is wierd. I can launch and kill a process in windows, but only if I do it in the same script. Just using xemacs as an example, I can launch it like so: import os, win32api, sys,os.path prog = "xemacs.exe" command = os.path.join(base,prog) mode = os.P_NOWAIT id = os.spawnl(mode,command)
by: Yosh | last post by:
I am developing an application that will stop and start a process on a remote machine. What security rights are needed for my application to be able to do this? Hope this makes sense. Yosh
by: Yosh | last post by:
I am developing an application that will stop and start a process on a remote machine. What security rights are needed for my application to be able to do this? Hope this makes sense. Yosh
by: =?Utf-8?B?U3Jhag==?= | last post by:
There is a process A that launches process B as a COM object. If the User tries to end process A, process B should also end. But vice versa is not true. Process A can run independant of process. It is not possible for a user to know process B is launched by process A. In the destructor of Process A, there is a code to close process B. During normal closing of process A, process B also gets closed. In certain situations this is not...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.