Mahesh Chavan
Mahesh Chavan

Reputation: 19

Calling windows application exe within web service method

I have 1 web application 1 web service and 1 windows application and I am calling a web service method from web application and in that method i am calling windows application exe. I have put windows application exe on server machine and also host that web service on server machine. If I the web service is hosted on local iis then its working and if it is on server IIS then it gives me Time Out error

Upvotes: 0

Views: 1753

Answers (1)

Alexey Obukhov
Alexey Obukhov

Reputation: 854

Web service executes in the context of the ASP.NET worker process on the Web server. If you use the Process.Start method in an ASP.NET Web page or server control, the new process executes on the Web server with restricted permissions.

Give permission for ASP.NET worker process account to interact with desktop or allow ASP.NET worker process to run in SYSTEM account.

  1. Open Control Panel and follow these steps: For Windows NT: click Services. For Windows 2000, Windows XP, and .NET Server: click Administrative Tools, and then click Services.
  2. Double-click IIS Admin Service.
  3. On the Log On tab, select the Allow Service to Interact with Desktop check box. Remember to run IIS Admin Service as a local system.
  4. Stop and restart the IIS Admin Service.

Upvotes: 2

Related Questions