.net 报错access to the path c:\tempimagefiles\msc_cntr_0.txt is denied

报错信息:

 解决方法:

在 Web.Config 的 <System.Web> 里加 <identity impersonate="true"/> 节点即可 .
解释 : 对你要操作的文件目录增加用户,也就是 ASP.net 的用户,一般都是 “IUSER_computerName”

右击使用的文件夹,属性->安全->user的权限都打开。

猜你喜欢

转载自www.cnblogs.com/webttt/p/9927152.html