所以当客户端执行任务时,我需要在服务器上执行一些任务,主要是为了获取他们上传的数据并将其存档...除了通过Process.start()调用调用Robocopy之外什么都不做。这是部署时无法正常工作,它在我的开发机器上运行VS2012,但在部署时没有,所以我确定它与ASP帐户的权限有关,但不管我给它或其他帐户的权限我得到同样的错误。我已经尝试了大量的东西我在网上阅读没有成功,试图以设置用户启动该过程,打开IIS管理服务的“允许服务与桌面交互”...似乎没有任何工作和它的驱动我很疯狂,因为另一个页面上的其他进程只是在没有任何此权限问题的情况下运行...请帮助!
应该注意我确实在D:\ Websites \ Ethreport上给了我的NETWORK SERVICE帐户完全权限
我的服务器日志不断出现以下错误
Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 1/6/2014 9:27:03 AM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: NPPVSUBMITTAL.amr.corp.com
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/6/2014 9:27:03 AM
Event time (UTC): 1/6/2014 5:27:03 PM
Event ID: 2ea3f9b6d24f4cda8bbc7159df2e45bd
Event sequence: 20
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-2-130335028137169135
Trust level: Full
Application Virtual Path: /
Application Path: D:\WebSites\EthReport\
Machine name: NPPVSUBMITTAL
Process information:
Process ID: 4004
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: Win32Exception
Exception message: Access is denied
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at PAENPPVSubmittal.Admin_SubmissionDetails.btnUpload_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://ethreport.com/Admin_SubmissionDetails.aspx?SubmissionID=2
Request path: /Admin_SubmissionDetails.aspx
User host address: x.x.x.x
User: AMR\mydomainlogin
Is authenticated: True
Authentication Type: Negotiate
Thread account name: AMR\sys_account
Thread information:
Thread ID: 7
Thread account name: AMR\sys_account
Is impersonating: False
Stack trace: at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at PAENPPVSubmittal.Admin_SubmissionDetails.btnUpload_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
我还应该注意到,我在运行应用程序的另一个页面上有另一个Process.start()函数,我没有任何权限问题。我确保该进程的文件夹和此文件夹对每个用户都具有相同的权限,但没有运气。
答案 0 :(得分:0)
这可能是双跳问题。