Since ASP.NET does not turn off the process, you can only place the following function in the Windows program and directly in one service to execute private void killprocess (String ProcessName) {system.diagnostics.process myproc = new system.diagnostics .Process (); // Get all open processes try {foreach (process thisproc in process.getprocessesbyName) {if (! Thisproc.closemainwindow ()) {thisproc.kill ();}} catch (Exception EXC) ) {Msg.text = "Kill" ProcessName "Failed!";