p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_codeclinic thread: Permission Or ASP Error - Urgent!


Message #1 by "Larry Guayante" <larryg@p...> on Mon, 18 Sep 2000 20:42:09 -0700
Tell your ISP to give you Execute and Script rights on your virtual
Directory and also allow NT Permission to Physical Directory Permissions as
ALL

Regards
Gyani

> -----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")
> a.Close
> 
> %>
> 
> It works fine on PWS on my local machine (windows 98). But when I run it
> on
> 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.
> My
> 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.
> Help!
> Can someone give me some guidance?
> 
> Thanks!
> 
> Larry Guayante
> Knowledge Outlook
> mailto:larry@k...
> 
> 
> ---
> You are currently subscribed to proasp_codeclinic.
> $subst('Email.Unsub')

  Return to Index