[英]file copy to remote server access error
I kept getting Access error on the following code: 我在以下代码上不断出现Access错误:
var fileName = "test.dgi";
var local = Path.Combine(@"C:\aaa", fileName);
var remote = Path.Combine(@"\\sw933chipqw001\tmp\", fileName);
Error I got is: 我得到的错误是:
Access to the path '\\sw933chipqw001\\tmp\\test.dgi' is denied.
拒绝访问路径“ \\ sw933chipqw001 \\ tmp \\ test.dgi”。
I tried to give Read/Write access to IUSR, IIS_ISURS and the service account I set in the app pool. 我试图授予对IUSR,IIS_ISURS和我在应用程序池中设置的服务帐户的读/写访问权限。 nothing worked.
没有任何效果。 I'm using IIS7.
我正在使用IIS7。
But if I add " Everyone " with the Read/Write access, it works. 但是,如果我在“ 所有人 ”中添加了“读/写”访问权限,它将可以正常工作。 Anyone know what is the specific account that I need to give permission to?
有人知道我需要授予权限的特定帐户是什么吗?
我只是尝试授予“已认证用户”对远程文件夹的完全控制权,所以它起作用了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.