470,604 Members | 2,020 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,604 developers. It's quick & easy.

Works under Win 2000 breaks under XP

I have a web application that works fine under Window 2000 but breaks under
Windows XP.

If it is served form a Win2k box, it makes a list of files in the "reports"
directory. If server on XP the IE screen goes white, and it just hourglasses
seemignly forever. Is there a security or configuration Iam missing?

I have tracked the breakdown to a section of code that uses the
FileSystemObject to build a select list on a page. It looks like this:
<%
' get reports directory
folder = Request.ServerVariables("PATH_TRANSLATED")
While (Right(folder, 1) <> "\" And Len(folder) <> 0)
iLen = Len(folder) - 1
folder = Left(folder, iLen)
Wend
folder = folder & "reports\"
%>
<form id=myForm name = myForm action =
PanMarketReports.asp?Market=<%=Market%> method=post>
<input type=hidden id=cmd name=cmd>
<Label>Select Report:</label>
<select id=reports name=reports onchange='myForm.cmd.value="getParms";
submit();' onselect='myForm.cmd.value="getParms"; submit();'
ondblclick='myForm.cmd.value="getParms"; submit();'>
<%
set fso = server.createobject("Scripting.fileSystemObject")
set fold = fso.getFolder(folder)
for each file in fold.files
fn = file.name
rn = LEFT(file.name,instrrev(file.name,".") - 1)

response.write "<option value = '" & file.name & "'"
if fn = Request("reports") then
Response.Write " selected "
end if
Response.Write ">" & rn & "</option>" & vbcrlf
next
set fold = nothing: set fso = nothing

%>
Jul 19 '05 #1
4 1292

"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
IE screen goes white, and it just hourglasses I have tracked the breakdown to a section of code that uses the
FileSystemObject


http://www.aspfaq.com/2180

Ray at work
Jul 19 '05 #2
Thanks, Ray I will try that as soon as I can get hold of that machine again.
I've been bitten by this exact thing before now that I read about it, funny
how one forgets or perhaps "blocks out" such painful memories :))

-- Bradley
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...

"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
IE screen goes white, and it just hourglasses

I have tracked the breakdown to a section of code that uses the
FileSystemObject


http://www.aspfaq.com/2180

Ray at work

Jul 19 '05 #3
This is why no one should ever run any anti-virus software. KIDDING

Ray at work

"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Thanks, Ray I will try that as soon as I can get hold of that machine again. I've been bitten by this exact thing before now that I read about it, funny how one forgets or perhaps "blocks out" such painful memories :))

Jul 19 '05 #4
Or at least never run Norton's antivirus...
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
This is why no one should ever run any anti-virus software. KIDDING

Ray at work

"Bradley M. Small" <BS****@XNOSPAMXmjsi.com> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Thanks, Ray I will try that as soon as I can get hold of that machine

again.
I've been bitten by this exact thing before now that I read about it,

funny
how one forgets or perhaps "blocks out" such painful memories :))


Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Malcolm Webb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.