Home > Database > Mysql Tutorial > Access to the path is denied(转载)

Access to the path is denied(转载)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:42:56
Original
1679 people have browsed it

asp.net程序目录放在系统盘,ntfs格式。 程序中对cfg.xml有写入操作。 运行的时候出现了这个问题。 在我自己的机器上没有问题 一到别人的机器上就出现这个错误了 没有写权限 用文本编辑器打开位于 %systemroot%\microsoft.net\framework\v1.1.4322\config 下

asp.net程序目录放在系统盘,ntfs格式。   

   程序中对cfg.xml有写入操作。   

   运行的时候出现了这个问题。   

   在我自己的机器上没有问题   

   一到别人的机器上就出现这个错误了   

没有写权限   

用文本编辑器打开位于    %systemroot%\microsoft.net\framework\v1.1.4322\config    下的    machine.config    文件,找到        节,设置    username="system"    。     

2.虚拟空间上经常出现access to the path X:XX is denied,尤其是一些诸如Xml,Lrc为扩展名的文件,其解决方法为:

在Web.Config的里加节点即可.

解释:对你要操作的文件目录增加用户,也就是ASP.net的用户,一般都是“IUSER_computerName”.

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Access error using alias
From 1970-01-01 08:00:00
0
0
0
Single module access
From 1970-01-01 08:00:00
0
0
0
About Mac MAMP PRO deploy thinkphp5.1 access 404
From 1970-01-01 08:00:00
0
0
0
My access page reports 403
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template