ASP Script errors.. Only just started happenng....!

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP Script errors.. Only just started happenng....!

    Microsoft VBScript runtime error '800a0046'
    Permission denied


    This happens when I try and delete a file using :

    <!-- asp -->

    <%
    deletefile = request.querystring("file")
    set objfso = createobject("scripting.filesystemobject")
    if objfso.fileexists (server.mappath("backup/" & deletefile)) then
    objfso.deletefile(server.mappath("backup/" & deletefile))

    <!-- asp -->


    This has worked in the past, but not now..
    I think I've screwed the permissions, but can't work out what.

    The folder structure is:

    TESTSITE
    ---> backup
    ---> images

    In the testsite root is the asp pages
    The backup folder holds backup files
    Images holds .... Images ! :)

    I have set Administrators with Full Control, and IUSER with READ, WRITE,
    READ, EXECUTE & LIST.

    I have set for all the permissions to be passed to all files and folders
    off the root of TestSite!! (I think !)

    This is on Windows 2000 Server and Windows 2003 Server.

    This worked on my old HardDisk, I cloned that and now running on a new disk
    !

    Any Advice ??

    Thanks



    TomT Guest

  2. Similar Questions and Discussions

    1. script errors
      I have a project that is showing script errors. I don't think there are errors. LOL Basically it is the same code on the next button. go to and...
    2. Java script errors
      Would one of you please assist? Running XP Home and Contribute 3 I am receiveing the following error message whenever I try to cut or paste on...
    3. Flash 8 Script Errors
      We have a large flash application using .NET/SQL backend. In some areas the app will receive large a dataset and loop through it displaying the...
    4. HELP script errors in projector
      everytime i try to go through my director file using the projector i get script errors on all of the buttons i have used to control windows media...
    5. Errors with a Ruby CGI script
      > So it seems that smtp.rb is having a hard time loading digest/md5. Odd. Can you su to 'www' and run `ruby -e 'require "digest/md5"' ` ? Does...
  3. #2

    Default Re: ASP Script errors.. Only just started happenng....!

    Hi,

    If your site is configured for anonymous accesss, the iusr_ account will be
    the account that needs premissions to delete the file. Why it have worked in
    the past but not now I dont know, have you changed any configuration setting
    in iis?

    /Erik

    "TomT" <tomt@takenet.com> wrote in message
    news:om6n10pdr54i4bfa3t0ibh4032q4aeruuf@4ax.com...
    > Microsoft VBScript runtime error '800a0046'
    > Permission denied
    >
    >
    > This happens when I try and delete a file using :
    >
    > <!-- asp -->
    >
    > <%
    > deletefile = request.querystring("file")
    > set objfso = createobject("scripting.filesystemobject")
    > if objfso.fileexists (server.mappath("backup/" & deletefile)) then
    > objfso.deletefile(server.mappath("backup/" & deletefile))
    >
    > <!-- asp -->
    >
    >
    > This has worked in the past, but not now..
    > I think I've screwed the permissions, but can't work out what.
    >
    > The folder structure is:
    >
    > TESTSITE
    > ---> backup
    > ---> images
    >
    > In the testsite root is the asp pages
    > The backup folder holds backup files
    > Images holds .... Images ! :)
    >
    > I have set Administrators with Full Control, and IUSER with READ, WRITE,
    > READ, EXECUTE & LIST.
    >
    > I have set for all the permissions to be passed to all files and folders
    > off the root of TestSite!! (I think !)
    >
    > This is on Windows 2000 Server and Windows 2003 Server.
    >
    > This worked on my old HardDisk, I cloned that and now running on a new
    disk
    > !
    >
    > Any Advice ??
    >
    > Thanks
    >
    >
    >

    Erik Guest

  4. #3

    Default Re: ASP Script errors.. Only just started happenng....!

    The problem started when I installed windows 2003 server as a dual boot
    with the existing Windows 2000 server.

    The 'C:' drive is selectable from a boot menu, I can choose Win 2000 server
    or Win 2003 Server, which ever I pick the other is hidden.

    I also have a 'D:' this has the web sites on.

    All was working fine until the 2003 server was installed and I assigned
    permissions to the Web Sites folder.

    I think the 2003 has overwritten the permissions on the 2000, and vice
    versa..

    If I give the IUSER modify and delete access to the folder with that site
    in the scripts wor fine, but I can't remember if that is how it was
    originally configured.

    I do have a clone of the original machine, so I can swap the hard disk and
    see what the setting were...

    Any other advice or ideas ??




    TomT 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