System.Diagnostics.Process.Start不是从IIS工作 [英] System.Diagnostics.Process.Start not work from an IIS
问题描述
当我运行 System.Diagnostics.Process.Start
从我的控制台应用程序它的工作原理,但相同的code,当我从IIS中承载我的web服务运行没有按'T的工作。
When I run System.Diagnostics.Process.Start
from my console application it works but the same code when I run from my web service hosted in IIS doesn't work.
是它的一些事情与ASP.Net的特权?如果是我该如何配置它从我的C#code。
Is it some thing to do with ASP.Net privileges?? if yes how can I configure it from my C# code.
推荐答案
的 ASP.NET网页和服务器控件code执行在Web服务器上的ASP.NET工作进程的情况下。如果您在ASP.NET Web页或服务器控件使用Start方法,新的工艺与执行受限权限在Web服务器上。该过程不会在相同的上下文中的客户端浏览器启动,并且不具有访问用户桌面。的
<一href=\"http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx\">http://msdn.microsoft.com/en-us/library/0w4h05yb.aspx
与桌面交互或允许ASP.NET辅助进程在系统帐户下运行。
to interact with desktop or allow ASP.NET worker process to run in SYSTEM account.
- 要了解如何让工作进程在系统帐户下运行
要知道ASPNET帐户的默认权限,检查此文章
INFO:进程和请求标识在ASP.NET:<一href=\"http://support.microsoft.com/default.aspx?scid=kb;en-us;317012\">http://support.microsoft.com/default.aspx?scid=kb;en-us;317012
要配置此,请按照此步骤。
To configure this, follow this steps.
-
一。打开控制面板,请按照下列步骤:
对于Windows NT:单击服务。
对于Windows 2000,Windows XP和.NET服务器:单击管理工具,然后单击服务
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.
乙。双击IIS管理服务。
b. Double-click IIS Admin Service.
这篇关于System.Diagnostics.Process.Start不是从IIS工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!