Access to the path is denied
2012-06-30 16:02
411 查看
1.提示:Access to the path : C:\pbmis\cfg.xml is denied.
asp.net程序目录放在系统盘,ntfs格式。
程序中对cfg.xml有写入操作。
运行的时候出现了这个问题。
在我自己的机器上没有问题
一到别人的机器上就出现这个错误了
没有写权限
用文本编辑器打开位于 %systemroot%\microsoft.net\framework\v1.1.4322\config 下的 machine.config 文件,找到 <processmodel> 节,设置 username="system" 。
2.虚拟空间上经常出现access to the path X:XX is denied,尤其是一些诸如Xml,Lrc为扩展名的文件,其解决方法为:
在Web.Config的<System.Web>里加<identity impersonate="true"/>节点即可.
解释:对你要操作的文件目录增加用户,也就是ASP.net的用户,一般都是“IUSER_computerName”.
asp.net程序目录放在系统盘,ntfs格式。
程序中对cfg.xml有写入操作。
运行的时候出现了这个问题。
在我自己的机器上没有问题
一到别人的机器上就出现这个错误了
没有写权限
用文本编辑器打开位于 %systemroot%\microsoft.net\framework\v1.1.4322\config 下的 machine.config 文件,找到 <processmodel> 节,设置 username="system" 。
2.虚拟空间上经常出现access to the path X:XX is denied,尤其是一些诸如Xml,Lrc为扩展名的文件,其解决方法为:
在Web.Config的<System.Web>里加<identity impersonate="true"/>节点即可.
解释:对你要操作的文件目录增加用户,也就是ASP.net的用户,一般都是“IUSER_computerName”.
相关文章推荐
- 发布网站,报Access to the path is denied的解决办法
- 上传文件没有写权限Access to the path is denied
- [ASP.NET] FileUpload SaveAs() access to the path is denied
- Access to the path is denied.
- Access to the path 'E:/EIMS/EIMSweb/hshupfile/201006/20100621050801290.xls' is denied.
- Access to the path "/etc/mono/registry" is denied.
- Access to the path is denied. ------- .net
- 关于access to the path is denied问题的解决
- C# Exception:Access to the path "" is denied.
- 发布网站,报Access to the path is denied的解决办法
- 异常处理 Access to the path is denied
- 关于access to the path is denied问题的解决(路径被拒绝)
- 转:Access to the path "c:/windows/microsoft.net/framework/v1.1.4322/Temporary ASP.NET Files/root/xxxxx/xxxxx" is denied.
- C# access to the path is denied
- 如何解决 "Access to the path *** is denied"
- Server Error in '/' Application. Access to the Path Is Denied" error message appears
- Could not write lines to file/Unable to delete file, Access to the path is denied.
- 发布网站,报Access to the path is denied的解决办法
- Access to the path "Library\UnityAssemblies\UnityEngine.xml" is denied.
- Access to the path is denied(转载)