Tell your ISP to give you Execute and Script rights on your virtual
Directory and also allow NT Permission to Physical Directory Permissions as
> -----Original Message-----
> From: Larry Guayante
> Sent: 19 September 2000 20:36
> To: Code Clinic
> Subject: [proasp_codeclinic] Permission Or ASP Error - Urgent!
> I'm trying to use the following to create a new text file:
> <%@ LANGUAGE="VBSCRIPT" %>
> Set fso = CreateObject("Scripting.FileSystemObject")
> sFileName = Server.MapPath("/testfile.txt")
> Set a = fso.CreateTextFile(sFileName, True)
> a.WriteLine ("This is a test")
> It works fine on PWS on my local machine (windows 98). But when I run it
> my NT Web Host(ISP) , I get the following error:
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /filetest.asp, line 7
> "Set a = fso.CreateTextFile(sFileName, True)" is where the error occurs.
> ISP is tellling me that the error is caused by either an ASP or VBscript
> error (IOW, nothing they can do). I think it's a permissions problem.
> Can someone give me some guidance?
> Larry Guayante
> Knowledge Outlook
> You are currently subscribed to proasp_codeclinic.