473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Trouble accessing a text file from ASP

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
3 1941
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rick Olson | last post by:
I'm trying to add a Tkinter interface to an existing C program with embedded python, but seem to have trouble importing Tkinter (or accessing it). I tried a simple program that would run the...
2
by: Sean Dotson | last post by:
I have a form that passes variables to an asp file and then uploads a file. For some reason the request.form is not getting the info from the form. It's returning blanks. Any insight would be...
23
by: Lamberti Fabrizio | last post by:
Hi all, I've to access to a network file from an asp pages. I've red a lot of things on old posts and on Microsoft article but I can't still solve my problem. I've got two server inside the...
6
by: Chris Styles | last post by:
Dear All, I've been using some code to verify form data quite happily, but i've recently changed the way my form is structured, and I can't get it to work now. Originally : The form is...
5
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
4
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be...
8
by: GaryDean | last post by:
I have a Wizard page and need to affect the next and previous buttons from my code-behind. I've googled around and found two solutions, and neither appear to work. I can access the SideBarList...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.