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. Advertisements

  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. Advertisements

  3. Dodo

    Dodo Guest

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

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. Goblin
    Replies:
    1
    Views:
    8,823
  2. Chris
    Replies:
    1
    Views:
    954
    Roy Johnson
    Oct 28, 2003
  3. Kevin Spencer
    Replies:
    3
    Views:
    3,230
    Kevin Spencer
    Aug 15, 2003
  4. =?Utf-8?B?ZmVzdGl2YWxtYW4=?=

    permission denied on an asp that's sending mail

    =?Utf-8?B?ZmVzdGl2YWxtYW4=?=, Jan 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,210
    Chris Jackson
    Jan 26, 2004
  5. Taishi

    Permission denied error 2nd Post

    Taishi, Feb 10, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    3,953
    Taishi
    Feb 11, 2004
  6. Nathan
    Replies:
    1
    Views:
    4,927
    Frances Valdes
    May 5, 2004
  7. =?Utf-8?B?Q2hyaXN0b2ZmZXIgU8O4cmVuc2Vu?=

    Permission denied creating directory

    =?Utf-8?B?Q2hyaXN0b2ZmZXIgU8O4cmVuc2Vu?=, Jun 21, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,112
    =?Utf-8?B?Q2hyaXN0b2ZmZXIgU8O4cmVuc2Vu?=
    Jun 22, 2004
  8. Replies:
    1
    Views:
    737
    john_teague
    Sep 1, 2005
Loading...