访问路径“D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ [英] Access to the path 'D:\PLESKVHOST\vhosts\friendscity.in\httpdocs\u_img\p4A3yFPr8N.jpg' is denied.

查看:164
本文介绍了访问路径“D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

string filename = Path.GetFileName(filenm.FileName);



                    filenm.SaveAs(Server.MapPath("u_img/" + s + extension));
                    string name = ("u_img/" + s + extension);

推荐答案

转储错误和一些代码是非常粗鲁的,甚至没有问一个题。但是,评论中提到的问题非常明显。将IIS中的应用程序池正在使用的帐户更改为具有权限或授予现有帐户权限的帐户。
It is very rude to dump an error and some code and not even ask a question. However, it is very obvious what the problem is as mentioned in the comments. Go change the account that your application pool in IIS is using to one that has permissions or grant the existing account permissions.


在plesk文件管理器中,导航到该文件夹​​,然后更改设置,即为IIS_USER帐户添加写入,删除和修改权限。
In the plesk file manager, navigate to that folder, and change the settings, i.e. add write, delete, and modify privileges for your IIS_USER account.


这篇关于访问路径“D:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆