🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #184

HELP!: File System Object in ASP code generates Permission Denied error on DeleteFile...

#184
From: BigBear
Date: Tue, 28 Mar 2000 00:00
24 lines
1869 bytes
I have an ASP application, which uses remote scripting.  The server side
script is sitting in a loop looking for a text file to arrive on a server.
Once the file arrives, I open it, read it, create a web page with info from
the text file, close the file and then delete it.  I need to delete it
because that's the only way I know the file is ready.

Problem #1 - When I call the fso.DeleteFile(filespec, force) method, I get a
remote scripting error that says "Permission Denied".  I can't even open the
file for writing, only reading.  I also can't change the file's attributes.
Is this an NTFS issue?

Problem #2 - While sitting in a while loop that simply checks to see if the
file exists, I eventually get a remote scripting error if the file doesn't
show up fairly quickly.  Is there a way to control this?  I have already set
the Session.Timeout property to 3 minutes, but it seems to timeout around 25
seconds.

If anyone has any information on how to fix this problem I would appreciate
a helping hand.

Barry Lulas
NetManage Inc.
barry.lulas@netmanage.com
bigbear@apk.net
Technical Details
Message-ID: <8bqof5$7og$1@plonk.apk.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb3cb,1ff43f8228e3991e,start
X-Google-Attributes: gidfb3cb,public
X-Google-Thread: fdea5,1ff43f8228e3991e,start
X-Google-Attributes: gidfdea5,public
From: "BigBear" <bigbear@apk.net>
Subject: HELP!:  File System Object in ASP code generates Permission Denied error on DeleteFile...
Date: 2000/03/28
Message-ID: <8bqof5$7og$1@plonk.apk.net>
X-Deja-AN: 603475795
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400
X-Complaints-To: abuse@apk.net
X-Trace: plonk.apk.net 954262821 7952 207.54.141.35 (28 Mar 2000 17:00:21 GMT)
Organization: APK Net
X-MSMail-Priority: Normal
NNTP-Posting-Date: 28 Mar 2000 17:00:21 GMT
Newsgroups: comp.lang.javascript,cz.comp.microsoft.asp