[英]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:我还想告诉你我做过的一些测试:
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.