Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > OpenTextFile just hangs

Reply
Thread Tools

OpenTextFile just hangs

 
 
jwallison
Guest
Posts: n/a
 
      02-26-2004
XPSp1/IIS 5.1

What am I doing wrong? The following code just hangs in asp page at
OpenTextFile() - and inet service manager just hangs if I try to unload app
at
this point -

<script runat="server" language="VBScript" >
Function JobList
filename = "privdata/curjobs.txt"
mappedname = Server.MapPath(filename)
Set fso = Server.CreateObject("Scripting.FileSystemObject")
if not fso.FileExists(mappedname) then
JobList = "Please check again later."
else
Set f = fso.OpenTextFile(mappedname)
JobList = f.ReadAll()
Set f = Nothing
end if
Set fso = Nothing
end function
</script>

The mappedname does point to the correct absolute path location (a virtual
dir under "documents and settings").

--
Regards,

Jim Allison
http://www.velocityreviews.com/forums/(E-Mail Removed)
(de-mung by removing '.1')





 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      02-26-2004
Most likely this.

http://www.aspfaq.com/show.asp?id=2180

Ray at work

"jwallison" <(E-Mail Removed)> wrote in message
news:19m%b.16909$(E-Mail Removed). ..
>
> The following code just hangs in asp page at


> Set fso = Server.CreateObject("Scripting.FileSystemObject")



 
Reply With Quote
 
 
 
 
jwallison
Guest
Posts: n/a
 
      02-26-2004
That did it.

thanks -

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:e3DkEHH$(E-Mail Removed)...
> Most likely this.
>
> http://www.aspfaq.com/show.asp?id=2180
>
> Ray at work
>
> "jwallison" <(E-Mail Removed)> wrote in message
> news:19m%b.16909$(E-Mail Removed). ..
> >
> > The following code just hangs in asp page at

>
> > Set fso = Server.CreateObject("Scripting.FileSystemObject")

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenTextFile never return Serge Myrand ASP General 2 06-21-2004 03:05 PM
OpenTextFile and Unicode Simon K ASP General 1 04-06-2004 12:53 PM
Clear hangs up - & hangs up - & hangs up Sue Bilstein NZ Computing 26 03-07-2004 01:33 AM
FileSystemObject - OpenTextFile stucks Fie Fie Niles ASP General 3 03-04-2004 05:24 PM
OpenTextFile and logging JT ASP General 4 12-23-2003 05:52 PM



Advertisments