1
因此,當客戶端執行任務時,我需要在服務器上執行一些任務,基本上需要將他們上載的數據和存檔關閉......除了通過Process.start()調用調用Robocopy之外什麼也不做。這是什麼在部署時不起作用,它在VS2012的開發機器上工作,但在部署時沒有,因此我確信它與ASP帳戶的權限有關,但無論我給予它或其他帳戶的權限如何得到相同的錯誤。我試過一大堆事情,但沒有成功,試圖以一個用戶身份啓動進程,打開IIS管理服務的「允許服務與桌面交互」......似乎沒有任何工作和它的驅動我瘋了,因爲另一個頁面上的另一個進程剛剛運行沒有任何這種權限問題...請幫助!嘗試運行一個進程但不是另一個進程時ASP.NET訪問被拒絕?
應當注意,我沒有把我的網絡服務帳戶d全權限:\網站\ Ethreport
我不斷收到以下錯誤在我的服務器登錄
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()函數,並且我沒有任何權限問題。我已確保該進程的文件夾和該文件夾對每個用戶具有相同的權限,但沒有運氣。