访问在System.Diagnostics.Process.StartWithCreateProcess被拒绝(的ProcessStartInfo的StartInfo) [英] Access is denied at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)

查看:2113
本文介绍了访问在System.Diagnostics.Process.StartWithCreateProcess被拒绝(的ProcessStartInfo的StartInfo)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想上传文件并将其保存他们我的Web服务器之前转换为另一种格式,但我得到以下错误:
System.ComponentModel.Win32Exception(0x80004005的):访问是在System.Diagnostics.Process.StartWithCreateProcess(的ProcessStartInfo的StartInfo)在System.Diagnostics.Process.Start否认()

I am trying to upload files and convert them to another format before saving them on my web server, but I get the following error: System.ComponentModel.Win32Exception (0x80004005): Access is denied at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start()

有没有问题,当我试图做到这一点我的本地机器的Web服务器(Windows 7),但我部署我的网站我的网站托管服务提供商,它具有Windows Server 2008中后收到此错误R2。

There was no problem when I tried to do this on my local machine's web server (Windows 7), but I am getting this error after deploying my website to my web hosting provider, which has Windows Server 2008 R2.

我正在使用ASP.NET C#。我猜这是一个权限问题,但我不知道如何提升任何权限。请帮助!

I am using ASP.NET c#. I'm guessing it's a permissions issue, but I'm not sure how to elevate any permissions. Please help!

推荐答案

我怀疑你能给予的权限来执行的标准ASPNET用户程序(这将是不好的做法,以及)。一个更好的选择(短的不可以启动一个进程)将应用程序池的用户更改为本地用户有权限执行过程(preferable非在服务器上admin帐户)。请注意,您启动过程中不能有任何的UI组件,因为你不会看到它运行。

I doubt you can give permissions to execute programs to the standard ASPNET user (and it would be bad practice as well). A better option (short of not starting a process) would be to change the user of the Application Pool to a local user on the server that has permissions to execute the process (preferable a non-admin account). Be aware that the process you start can't have any UI components since you won't see it running.

这篇关于访问在System.Diagnostics.Process.StartWithCreateProcess被拒绝(的ProcessStartInfo的StartInfo)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆