System.Diagnostics.Process.Start not work from an IIS

ASP.NET Web page and server control code executes in the context of the ASP.NET worker process on the Web server. If you use the Start method in an ASP.NET Web page or server control, the new process executes on the Web server with restricted permissions. The process does not start in the same context as the client browser, and does not have access to the user desktop.
http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx

– Give permission for ASP.NET worker process account

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

– Enable IIS Admin Service to interact with desktop

To configure this, follow this steps.

  • a. 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.

  • b. Double-click IIS Admin Service.

  • c. 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.
  • d. Stop and restart the IIS Admin Service.

Leave a Comment