writeline permission denied

Discussion in 'ASP General' started by Dodo, Oct 21, 2003.

  1. Dodo

    Dodo Guest

    I'm trying to append to a file a string such as the following: 127599.0
    127838.5 14.434 87

    first error - 500 internal server error
    refresh
    second error - echoes string...does not append file
    refresh
    third error - permission denied

    Any ideas greatly appreciated!

    <%set
    file=server.createobject("scripting.filesystemobject").opentextfile(server.m
    appath("mpg.txt"),8)
    file.writeline(request.querystring("start")&"
    "&request.querystring("finish")&" "&request.querystring("gallons")&"
    "&request.querystring("octane"))
    file.close%>
     
    Dodo, Oct 21, 2003
    #1
    1. Advertising

  2. Dodo

    Ray at Guest

    Does IUSR_machineName have NTFS permissions to write to this file?

    Also read here. http://www.aspfaq.com/2109

    Ray at work

    "Dodo" <> wrote in message
    news:...
    > I'm trying to append to a file a string such as the following: 127599.0
    > 127838.5 14.434 87
    >
    > first error - 500 internal server error
    > refresh
    > second error - echoes string...does not append file
    > refresh
    > third error - permission denied
    >
    > Any ideas greatly appreciated!
    >
    > <%set
    >

    file=server.createobject("scripting.filesystemobject").opentextfile(server.m
    > appath("mpg.txt"),8)
    > file.writeline(request.querystring("start")&"
    > "&request.querystring("finish")&" "&request.querystring("gallons")&"
    > "&request.querystring("octane"))
    > file.close%>
    >
    >
    >
    >
     
    Ray at, Oct 21, 2003
    #2
    1. Advertising

  3. Dodo

    Dodo Guest

    that worked...thanks
     
    Dodo, Oct 21, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Grey

    Cannot use "Console.WriteLine"

    Grey, Apr 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,438
    =?Utf-8?B?U3VkaGFrYXIgU2FkYXNpdnVuaVtNVlBd?=
    Apr 13, 2004
  2. A.M
    Replies:
    4
    Views:
    10,910
  3. xuxu
    Replies:
    5
    Views:
    1,065
    Ramendra
    Jan 17, 2006
  4. Flip
    Replies:
    6
    Views:
    6,727
    Jeff Dillon
    Nov 18, 2004
  5. Replies:
    1
    Views:
    552
    john_teague
    Sep 1, 2005
Loading...

Share This Page