By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

Trouble accessing a text file from ASP

P: n/a
Hi,

This ASP (Visual Studio 6) code works on other PCs (The ASP code runs locally on localhost), but it causes IE to hang on a new PC (again, the ASP code runs locally on localhost). I think it may be a permissions issue. I need help trouble-shooting:

This works fine:
Dim fso, ts, sLog, sDate
sDate = Right(DatePart("yyyy", Date), 2) & ...
sLog = sDate & ".LOG"
Set fso = Server.CreateObject("Scripting.FileSystemObject")

IE hangs here (no error message. status bar says "Opening page http://localhost/kiosk/default.asp?marketid=..."):
Set ts = fso.OpenTextFile(Server.MapPath("logs") & "\" & sLog, 8, True)

Server.MapPath("logs") & "\" & sLog
evaluates to:
C:\Inetpub\wwwroot\travelmaster\kiosk\logs\041105. LOG

C:\Inetpub\wwwroot\travelmaster\kiosk\logs is a valid folder.
I have tried both cases: the text file 041105.LOG exists or does not exist.

Under Windows Explorer's Properties | Security, the folder C:\Inetpub\wwwroot\travelmaster\kiosk\logs shows (among other users) the following:

IUSR_MachineName with Modify, Read & Execute, List, Read, Write allowed.
IWAM_MachineName with Modify, Read & Execute, List, Read, Write allowed.

If I right click on My Computer | Manage | expand IIS | expand Default Web Site | expand the kiosk folder | right click on the Logs folder | and select the Directory tab, "Execute Permissions" are set to "Scripts and Executables"

If I right click on My Computer | Manage | expand IIS | expand Default Web Site | select the Home Directory tab,
"Local Path" is set to "C:\Inetpub\wwwroot\travelmaster"
Execute Permissions is set to "Scripts and Executables"
Application Protection is set to "Medium (Pooled)"

What have I not set properly?

If you can, please explain as I am a newby trying to learn and understand.
Thanks.
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Please do not post in HTML.

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

Ray at home
"tmaster1" <no****@spam.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...

IE hangs here (no error message. status bar says "Opening page
http://localhost/kiosk/default.asp?marketid=..."):
Set ts = fso.OpenTextFile(Server.MapPath("logs") & "\" & sLog, 8, True)
Jul 21 '05 #2

P: n/a
Sorry about the html.
I did have Noron's Script Blocking enabled. However, after disabling Noron's
Script Blocking, I still have the problem:

IE hangs here (no error message. status bar says "Opening page
http://localhost/kiosk/default.asp?marketid=..."):
Set ts = fso.OpenTextFile(Server.MapPath("logs") & "\" & sLog, 8, True)

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uq**************@TK2MSFTNGP15.phx.gbl...
Please do not post in HTML.

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

Ray at home
"tmaster1" <no****@spam.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...

IE hangs here (no error message. status bar says "Opening page
http://localhost/kiosk/default.asp?marketid=..."):
Set ts = fso.OpenTextFile(Server.MapPath("logs") & "\" & sLog, 8, True)

Jul 21 '05 #3

P: n/a
Are you 100% sure? This problem has been posted here hundreds of times
before, and I've never heard of the solution being anything else. Do you
have a second AV program installed or anything?

Ray at home

"tmaster1" <no****@spam.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Sorry about the html.
I did have Noron's Script Blocking enabled. However, after disabling
Noron's Script Blocking, I still have the problem:

IE hangs here (no error message. status bar says "Opening page
http://localhost/kiosk/default.asp?marketid=..."):
Set ts = fso.OpenTextFile(Server.MapPath("logs") & "\" & sLog, 8, True)

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uq**************@TK2MSFTNGP15.phx.gbl...
Please do not post in HTML.

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

Ray at home
"tmaster1" <no****@spam.com> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...

IE hangs here (no error message. status bar says "Opening page
http://localhost/kiosk/default.asp?marketid=..."):
Set ts = fso.OpenTextFile(Server.MapPath("logs") & "\" & sLog, 8, True)


Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.