1

I have a WCF (C#) installed on a server that execute xxx.exe file.

The xxx.exe using c++ CreateWindow and write txt file.

I already find a lot of solution ...

How to execute exe form asp.net ?

Unable to Start a Process from ASP.NET

I can start a process from ASP.NET using System.Diagonistics.Process.Start method. Process start in the background ,but I can't see it in the desktop.

I can't find iis admin service and "Allow Service to Interact with Desktop check box" in the services.

Server:

Windows 7 64bit
Internet Information Services 7
.NET Framework 4.5

WCF:

using System.Diagnostics;
Process.Start(@"D:\xxx.exe", "");

local services: where is iis admins

薛龍崎
  • 33
  • 1
  • 6

1 Answers1

1

go to start, in the search box type "local services", open that program and find IIS Admin Service, click Log On tab there is a radio button group called Log on As and a check box "Allow service to interact with desktop"

You may have to restart service and IIS.

EDIT:

If you can't see the Admin Service in local service, then you will have to enable it in Windows Features under Internet Information Services -> Web Management Tools -> IIS6 Management Compatibility -> Check All

EDIT

Try with processinfo

ProcessStartInfo startInfo = new ProcessStartInfo(@"D:\xxx.exe");
startInfo.WindowStyle = ProcessWindowStyle.Normal;
Process.Start(startInfo);