简体   繁体   English

运行“System.Diagnostics.Process.Start()”时访问被拒绝

[英]Access is denied while running “System.Diagnostics.Process.Start()”

I have a windows form application(on vb.net) which can save and show files to users.我有一个 Windows 窗体应用程序(在 vb.net 上),它可以保存并向用户显示文件。

When a user clicks on the file's name, my application copies this file from the server into his personal folders.当用户单击文件名时,我的应用程序将此文件从服务器复制到他的个人文件夹中。 Then in order to open this file, I use:然后为了打开这个文件,我使用:

System.Diagnostics.Process.Start(Path+Filename)

A specific user (UserA) gets an error "Access is denied".特定用户 (UserA) 收到错误“访问被拒绝”。

I would like to inform you also about some test that i have done:我还想告诉你我做过的一些测试:

  • If this user (UserA) been navigated into his personal folder he can open the files.如果此用户 (UserA) 被导航到他的个人文件夹中,他就可以打开这些文件。
  • This happening for every file(word, excel, .zip, .ppt, .html)每个文件(word、excel、.zip、.ppt、.html)都会发生这种情况
  • When this user (UserA) logged in to anther computer he hadn't got any issue.当这个用户 (UserA) 登录到另一台计算机时,他没有遇到任何问题。
  • When a random user tried on this user's (UserA) computer he hadn't got any issue, too.当随机用户尝试使用该用户 (UserA) 的计算机时,他也没有遇到任何问题。
  • This feature has been working properly for everyone for 8 years, and this issue appeared before 1 week.此功能已为大家正常工作 8 年,1 周前出现此问题。

Seems that there is something wrong with this user on this computer.似乎此用户在这台计算机上有问题。 Can someone help?有人可以帮忙吗?

Your problem might be in user account control, or Group Policies on this PC.您的问题可能出在此 PC 上的用户帐户控制或组策略中。 If you are the system administrator for this PC, try using the Group Policy console to see if anything has been applied that may restrict access.如果您是这台 PC 的系统管理员,请尝试使用组策略控制台查看是否已应用任何可能限制访问的内容。 Another thing to consider is if this user has read and/or modify/write access to this file or folder.要考虑的另一件事是该用户是否具有对该文件或文件夹的读取和/或修改/写入访问权限。 If he/she doesn't have read access, then this will stop the user from being able to run the program.如果他/她没有读取权限,那么这将阻止用户运行该程序。 The reason that it works in the user's personal folder may be that the user simply has read/write/modify access to this folder, and not the folder where your application is.它在用户的个人文件夹中工作的原因可能是用户只是对该文件夹具有读/写/修改访问权限,而不是您的应用程序所在的文件夹。 If not, try clearing the user cache on the computer or simply re-imaging it (if you have an imaging process).如果没有,请尝试清除计算机上的用户缓存或简单地对其进行重新映像(如果您有映像过程)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows CE上的System.Diagnostics.Process.Start()返回FileNotFound异常 - System.Diagnostics.Process.Start() Return FileNotFound Exception On Windows CE System.Diagnostics.Process.Start(OutputFileName)可在本地计算机上运行,​​但不能在Web服务器上运行-vb.net - System.Diagnostics.Process.Start(OutputFileName) works on local machine but not in webserver - vb.net 使用System.Diagnostics.Process.Start()启动时,MSAccess无法打开数据库 - MSAccess not opening database when started using System.Diagnostics.Process.Start() 提供了用户帐户后,System.Diagnostics.Process.Start将无法在启动中运行 - System.Diagnostics.Process.Start won't work in startup when supplied user account System.Process.Start-运行MSI问题 - System.Process.Start - running msi problem 来自ManagementBaseObject的System.Diagnostics.Process - System.Diagnostics.Process from ManagementBaseObject 没有为类型“System.Diagnostics.Process”和“System.Diagnostics.Process”定义错误运算符“&lt;&gt;” - Error Operator '<>' is not defined for types 'System.Diagnostics.Process' and 'System.Diagnostics.Process' 从.NET(System.Diagnostics.Process)执行编译的jar文件 - Executing compiled jar file from .NET (System.Diagnostics.Process) System.Diagnostics.Process仅在网络文件上挂起 - System.Diagnostics.Process Hangs on Network Files Only SeDebugPrivilege()API函数是否与System.Diagnostics.Process.EnterDebugMode相同? - Is SeDebugPrivilege() api function the same as System.Diagnostics.Process.EnterDebugMode?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM