Works under Win 2000 breaks under XP

Ask a Question related to ASP, Design and Development.

  1. #1

    Default 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

    %>


    Bradley M. Small Guest

  2. Similar Questions and Discussions

    1. #38886 [NEW]: PDO fails for no apparent reason, pages that works randomly breaks
      From: tg at idiom dot dk Operating system: Linux 2.6.12.5 PHP version: 5.1.6 PHP Bug Type: PDO related Bug description: PDO...
    2. mpeg 1 works in xp but not 98 or 2000
      Hello, I am very new to Director, I have built an interface with icons linking to 6 mpeg1 movies. after I made the projector and burned an...
    3. Works 2000 / XP
      I've recently installed WinXP and found that I am unable to install works 2000. Awindow opens up saying, Error 1401 Could not create key...
    4. Works 2000 / XP Service pack 1A
      I recently installed the Home version of WinXP, however it won't let me install my works 2000 or the Service pac 1A. With the installation of works...
    5. Works 2000
      I' ve recently installed the full version of WinXP Home version. But I've been unable to reinstall my works 2000 since, how can I get this works...
  3. #2

    Default Re: Works under Win 2000 breaks under XP


    "Bradley M. Small" <BSmall@XNOSPAMXmjsi.com> wrote in message
    news:%23waZoZMnDHA.2424@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
    [url]http://www.aspfaq.com/2180[/url]

    Ray at work


    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139