R
Ronin
Hi people,
Tonight I started writing my first program, a 'counter' ASP program, but hit
the error Microsoft VBScript runtime error '800a0046' Permission denied.
Here's my program, trimmed down to the bare essentials for your easy view.
<HTML>
<body>
<p>You are visitor <%
fp = Server.MapPath("aspcount.txt")
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile(fp)
ct = Clng(a.ReadLine)
a.Close
Set a = fs.CreateTextFile(fp, True)
ct = ct + 1
a.WriteLine(ct)
a.Close
Response.Write ct
%></p>
</body>
</HTML>
The error stopped at the CreateTextFile line. I guess this is a security
issue with my webhost? My webhost claims it allows me to support ASP, so
whats wrong?
Thanks.
(I'm really embarassed. 9 years writing programs for big corporations and
can't solve this teeny little problem. You guys must have heard this many
times. Fingers crossed that I don't get flamed.)
Tonight I started writing my first program, a 'counter' ASP program, but hit
the error Microsoft VBScript runtime error '800a0046' Permission denied.
Here's my program, trimmed down to the bare essentials for your easy view.
<HTML>
<body>
<p>You are visitor <%
fp = Server.MapPath("aspcount.txt")
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.OpenTextFile(fp)
ct = Clng(a.ReadLine)
a.Close
Set a = fs.CreateTextFile(fp, True)
ct = ct + 1
a.WriteLine(ct)
a.Close
Response.Write ct
%></p>
</body>
</HTML>
The error stopped at the CreateTextFile line. I guess this is a security
issue with my webhost? My webhost claims it allows me to support ASP, so
whats wrong?
Thanks.
(I'm really embarassed. 9 years writing programs for big corporations and
can't solve this teeny little problem. You guys must have heard this many
times. Fingers crossed that I don't get flamed.)