Hi:
I got this error msg when I open my webpage index.asp:
Microsoft VBScript runtime error '800a0046'
Permission denied
/index.asp, line 29
This error point to this line of code
fp = Server.MapPath("aspcount.txt"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set fs = CreateObject("Scripting.FileSystemObject"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set a = fs.OpenTextFile(fp)
ct = Clng(a.ReadLine)
if Session("ct"
= "" then
Session("ct"
= ct
ct = ct + 1
a.close
Set a = fs.CreateTextFile(fp, True) <------------error here
a.WriteLine(ct)
end if
a.Close
this is in Unix environment. I chmod aspcount.txt file to 777.
So I don't know get this error.
Thanks lots for help
I got this error msg when I open my webpage index.asp:
Microsoft VBScript runtime error '800a0046'
Permission denied
/index.asp, line 29
This error point to this line of code
fp = Server.MapPath("aspcount.txt"
Set fs = CreateObject("Scripting.FileSystemObject"
Set a = fs.OpenTextFile(fp)
ct = Clng(a.ReadLine)
if Session("ct"
Session("ct"
ct = ct + 1
a.close
Set a = fs.CreateTextFile(fp, True) <------------error here
a.WriteLine(ct)
end if
a.Close
this is in Unix environment. I chmod aspcount.txt file to 777.
So I don't know get this error.
Thanks lots for help