自行车音响排行榜:程序中为什么提示我权限不够?第8行

来源:百度文库 编辑:神马品牌网 时间:2024/05/12 19:31:37
<%
Set fs = Server.CreateObject("Scripting.FileSystemObject")
file_Path = Server.MapPath("database/counter.txt")
if isEmpty(Application("CounterValue")) then
Set CounterFile = fs.OpenTextFile(file_Path, 1 ,False, 0)
Application("CounterValue") = CounterFile.ReadLine
CounterFile.Close
End if
Application.Lock
Application("CounterValue") = Application("CounterValue") + 1
Application.UnLock
Set CounterFile = fs.OpenTextFile(file_Path, 2)
CounterFile.WriteLine(Application("CounterValue"))
CounterFile.Close
# 错误类型:
Microsoft VBScript 运行时错误 (0x800A0046)
没有权限
/index.asp, 第 8 行

# 浏览器类型:
Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.8) Gecko/20051111 Firefox/1.5

# 网页:
GET /index.asp

# 时间:

1.可能是你存放网页程序的目录是只读的,不允许写操作。

2.可能是网页所在分区是NTFS格式的,该格式有保护功能,可以在右键,属性,安全里面设置好权限。

在你要操作的文件的根目录文件夹下,单击右键打开属性面板,在安全里设置use或everyone用户的权限全部选中!