FSO does not complete on the server.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MD Websunlimited

    FSO does not complete on the server.

    It seems that since we installed SP2 for XP that using FSO hangs. For example, if you un-comment the OpenTextFile statement it will hang. I've checked permissions and IUSR_XXXX has everything needed.

    Thanks,

    <%
    response.buffer = false
    response.write server.mappath( "config.asp ") & "<br>"
    Set FS = CreateObject("S cripting.FileSy stemObject")
    if IsObject(FS) then
    response.write "Got FSO<br>"
    else
    response.write "No FSO<br>"
    end if
    'Set WriteFile = FS.OpenTextFile (sever.mappath( "test.txt", 2,true)
    'WriteFile.Writ eLine("<" & chr(37))
    set FS = Nothing
    set WriteFile = Nothing

    %>
    <html>

    <head>
    <meta name="GENERATOR " content="Micros oft FrontPage 6.0">
    <meta name="ProgId" content="FrontP age.Editor.Docu ment">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>File Wrote</title>
    </head>

    <body>
    <%
    response.write server.mappath( "config.asp ") & "<br>"
    %>
    File Wrote
    </body>

    </html>

  • Ray Costanzo [MVP]

    #2
    Re: FSO does not complete on the server.



    Ray at home

    "MD Websunlimited" <none@none.co m> wrote in message
    news:uXfqMBrxEH A.1192@tk2msftn gp13.phx.gbl...
    FSO hangs. For example, if you un-comment the OpenTextFile statement it
    will hang.


    Comment

    • MD Websunlimited

      #3
      Re: FSO does not complete on the server.

      Boy I feel really dumb.

      I had installed NAV 2005 upgrade about a week before SP2 and apparently had not done any FSO. I naturally associated the problem
      with the last thing that changed.

      Thanks again,

      Mike

      "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:O7MuVCuxEH A.3844@TK2MSFTN GP12.phx.gbl...[color=blue]
      > http://www.aspfaq.com/show.asp?id=2180
      >
      > Ray at home
      >
      > "MD Websunlimited" <none@none.co m> wrote in message news:uXfqMBrxEH A.1192@tk2msftn gp13.phx.gbl...
      > FSO hangs. For example, if you un-comment the OpenTextFile statement it will hang.
      >[/color]


      Comment

      • Ray Costanzo [MVP]

        #4
        Re: FSO does not complete on the server.

        Nah, don't feel dumb! This is not one of the most obvious things around.
        :]

        Ray at work

        "MD Websunlimited" <none@none.co m> wrote in message
        news:Oy$4fpyxEH A.908@TK2MSFTNG P11.phx.gbl...[color=blue]
        > Boy I feel really dumb.
        >
        > I had installed NAV 2005 upgrade about a week before SP2 and apparently
        > had not done any FSO. I naturally associated the problem with the last
        > thing that changed.
        >
        > Thanks again,
        >
        > Mike
        >
        > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
        > message news:O7MuVCuxEH A.3844@TK2MSFTN GP12.phx.gbl...[color=green]
        >> http://www.aspfaq.com/show.asp?id=2180
        >>
        >> Ray at home
        >>
        >> "MD Websunlimited" <none@none.co m> wrote in message
        >> news:uXfqMBrxEH A.1192@tk2msftn gp13.phx.gbl...
        >> FSO hangs. For example, if you un-comment the OpenTextFile statement it
        >> will hang.
        >>[/color]
        >
        >[/color]


        Comment

        Working...