Professional Web Applications Themes

Microsoft VBScript runtime error '800a0046' - ASP

hello all, i have a permission issue. my script works fine on my windows2000 server development box, however when i move it to my windows2003 production server it produces an error. any help would be great. script <% set oWS=server.createobject("WScript.shell") ret=oWS.Run("c:\bat\send_erp_test.bat", 0, true) 'line 19 if(ret=0) then message = "test_sent" else message = "not working<br>" end if %> error: Microsoft VBScript runtime error '800a0046' Permission denied /admin_rps/erp_send_test_sql.asp, line 19...

  1. #1

    Default Microsoft VBScript runtime error '800a0046'

    hello all,

    i have a permission issue.

    my script works fine on my windows2000 server development
    box, however when i move it to my windows2003 production
    server it produces an error. any help would be great.

    script
    <%
    set oWS=server.createobject("WScript.shell")
    ret=oWS.Run("c:\bat\send_erp_test.bat", 0, true) 'line 19

    if(ret=0) then
    message = "test_sent"
    else
    message = "not working<br>"
    end if
    %>



    error:
    Microsoft VBScript runtime error '800a0046'

    Permission denied

    /admin_rps/erp_send_test_sql.asp, line 19

    nicholas.gadacz Guest

  2. #2

    Default Re: Microsoft VBScript runtime error '800a0046'

    I am guessing that, Windows 2003 permissions are tighter and hence the
    account your are running this ASP under, does not have permissions to
    execute the BAT file. Check in the security tab of file properties, what the
    IUSR account permissions are.

    --
    Manohar Kamath
    Editor, .netBooks
    [url]www.dotnetbooks.com[/url]


    "nicholas.gadacz" <nicholas_gadacz> wrote in message
    news:05a201c39819$0ae8f730$a101280aphx.gbl...
    > hello all,
    >
    > i have a permission issue.
    >
    > my script works fine on my windows2000 server development
    > box, however when i move it to my windows2003 production
    > server it produces an error. any help would be great.
    >
    > script
    > <%
    > set oWS=server.createobject("WScript.shell")
    > ret=oWS.Run("c:\bat\send_erp_test.bat", 0, true) 'line 19
    >
    > if(ret=0) then
    > message = "test_sent"
    > else
    > message = "not working<br>"
    > end if
    > %>
    >
    >
    >
    > error:
    > Microsoft VBScript runtime error '800a0046'
    >
    > Permission denied
    >
    > /admin_rps/erp_send_test_sql.asp, line 19
    >

    Manohar Kamath [MVP] Guest

  3. #3

    Default Re: Microsoft VBScript runtime error '800a0046'


    i am sure it is a permissions problem but i just don't
    know what.

    for the bat file. it is in
    c:\bat

    and IUSR has rights to the directory and that file. do i
    have to do anything in iis? in windows 2000 server i did
    not have to do anything, but my machine is pretty open
    because i am behind a firewall.

    any help would be great. there is some difference between
    2000 and 2003 that i am missing.

    nicholas.gadacz
    >-----Original Message-----
    >I am guessing that, Windows 2003 permissions are tighter
    and hence the
    >account your are running this ASP under, does not have
    permissions to
    >execute the BAT file. Check in the security tab of file
    properties, what the
    >IUSR account permissions are.
    >
    >--
    >Manohar Kamath
    >Editor, .netBooks
    >[url]www.dotnetbooks.com[/url]
    >
    >
    >"nicholas.gadacz" <nicholas_gadacz> wrote in
    message
    >news:05a201c39819$0ae8f730$a101280aphx.gbl...
    >> hello all,
    >>
    >> i have a permission issue.
    >>
    >> my script works fine on my windows2000 server
    development
    >> box, however when i move it to my windows2003 production
    >> server it produces an error. any help would be great.
    >>
    >> script
    >> <%
    >> set oWS=server.createobject("WScript.shell")
    >> ret=oWS.Run("c:\bat\send_erp_test.bat", 0, true) 'line
    19
    >>
    >> if(ret=0) then
    >> message = "test_sent"
    >> else
    >> message = "not working<br>"
    >> end if
    >> %>
    >>
    >>
    >>
    >> error:
    >> Microsoft VBScript runtime error '800a0046'
    >>
    >> Permission denied
    >>
    >> /admin_rps/erp_send_test_sql.asp, line 19
    >>
    >
    >
    >.
    >
    nicholas.gadacz Guest

  4. #4

    Default Re: Microsoft VBScript runtime error '800a0046'

    nicholas.gadacz wrote:
    > i am sure it is a permissions problem but i just don't
    > know what.
    >
    > for the bat file. it is in
    > c:\bat
    >
    > and IUSR has rights to the directory and that file. do i
    > have to do anything in iis? in windows 2000 server i did
    > not have to do anything, but my machine is pretty open
    > because i am behind a firewall.
    >
    > any help would be great. there is some difference between
    > 2000 and 2003 that i am missing.
    <snip>
    >>> error:
    >>> Microsoft VBScript runtime error '800a0046'
    >>>
    >>> Permission denied
    >>>
    >>> /admin_rps/erp_send_test_sql.asp, line 19
    What about permissions for whatever the batch file is doing? IUSR needs
    permissions for those activities as well ...

    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  5. #5

    Default Microsoft VBScript runtime error '800a0046'

    Hi all,
    I have a web server has IIS 5 running on it. I use an ASP
    page to collect users' inquiries. The page was working
    fine, suddenly I'm not getting any more inquiries from
    users. When I tested it, it works fine. I have one of my
    co-worker tested from her home computer, she got the error
    message say: Microsoft VBScript runtime error '800a0046'

    Permission denied

    /thankyou.asp, line 300

    It seems strange to me because I'm not getting the same
    message she's got on any of computer I tested on,
    including my computers at home.

    Ken Guest

  6. #6

    Default Re: Microsoft VBScript runtime error '800a0046'

    What's on line 300?

    Ray at work
    "Ken" <anonymousdiscussions.microsoft.com> wrote in message
    news:c09801c4382c$b9bb41b0$a301280aphx.gbl...
    > Hi all,
    > I have a web server has IIS 5 running on it. I use an ASP
    > page to collect users' inquiries. The page was working
    > fine, suddenly I'm not getting any more inquiries from
    > users. When I tested it, it works fine. I have one of my
    > co-worker tested from her home computer, she got the error
    > message say: Microsoft VBScript runtime error '800a0046'
    >
    > Permission denied
    >
    > /thankyou.asp, line 300
    >
    > It seems strange to me because I'm not getting the same
    > message she's got on any of computer I tested on,
    > including my computers at home.
    >

    Ray at Guest

  7. #7

    Default Re: Microsoft VBScript runtime error '800a0046'

    Line 300 is:
    objCDOMail.Send

    Thank you.

    >-----Original Message-----
    >What's on line 300?
    >
    >Ray at work
    >"Ken" <anonymousdiscussions.microsoft.com> wrote in
    message
    >news:c09801c4382c$b9bb41b0$a301280aphx.gbl...
    >> Hi all,
    >> I have a web server has IIS 5 running on it. I use an
    ASP
    >> page to collect users' inquiries. The page was working
    >> fine, suddenly I'm not getting any more inquiries from
    >> users. When I tested it, it works fine. I have one of
    my
    >> co-worker tested from her home computer, she got the
    error
    >> message say: Microsoft VBScript runtime error '800a0046'
    >>
    >> Permission denied
    >>
    >> /thankyou.asp, line 300
    >>
    >> It seems strange to me because I'm not getting the same
    >> message she's got on any of computer I tested on,
    >> including my computers at home.
    >>
    >
    >
    >.
    >
    ken Guest

  8. #8

    Default Re: Microsoft VBScript runtime error '800a0046'

    Be sure that your IUSR account has NTFS permissions to write files to
    \inetpub\mailroot\pickup.

    Ray at work

    "ken" <anonymousdiscussions.microsoft.com> wrote in message
    news:c39e01c43850$102277d0$a301280aphx.gbl...
    > Line 300 is:
    > objCDOMail.Send
    >
    > Thank you.
    >
    >
    > >-----Original Message-----
    > >What's on line 300?
    > >
    > >Ray at work
    > >"Ken" <anonymousdiscussions.microsoft.com> wrote in
    > message
    > >news:c09801c4382c$b9bb41b0$a301280aphx.gbl...
    > >> Hi all,
    > >> I have a web server has IIS 5 running on it. I use an
    > ASP
    > >> page to collect users' inquiries. The page was working
    > >> fine, suddenly I'm not getting any more inquiries from
    > >> users. When I tested it, it works fine. I have one of
    > my
    > >> co-worker tested from her home computer, she got the
    > error
    > >> message say: Microsoft VBScript runtime error '800a0046'
    > >>
    > >> Permission denied
    > >>
    > >> /thankyou.asp, line 300
    > >>
    > >> It seems strange to me because I'm not getting the same
    > >> message she's got on any of computer I tested on,
    > >> including my computers at home.
    > >>
    > >
    > >
    > >.
    > >

    Ray at Guest

  9. #9

    Default Re: Microsoft VBScript runtime error '800a0046'

    Yes the IUSR has the full permissions to write files to
    the \mailroot\pickup folder. I also added IUSR user to
    the local admin group on the web server, but that one
    computer still getting that error message.

    Thank you.
    >-----Original Message-----
    >Be sure that your IUSR account has NTFS permissions to
    write files to
    >\inetpub\mailroot\pickup.
    >
    >Ray at work
    >
    >"ken" <anonymousdiscussions.microsoft.com> wrote in
    message
    >news:c39e01c43850$102277d0$a301280aphx.gbl...
    >> Line 300 is:
    >> objCDOMail.Send
    >>
    >> Thank you.
    >>
    >>
    >> >-----Original Message-----
    >> >What's on line 300?
    >> >
    >> >Ray at work
    >> >"Ken" <anonymousdiscussions.microsoft.com> wrote in
    >> message
    >> >news:c09801c4382c$b9bb41b0$a301280aphx.gbl...
    >> >> Hi all,
    >> >> I have a web server has IIS 5 running on it. I use
    an
    >> ASP
    >> >> page to collect users' inquiries. The page was
    working
    >> >> fine, suddenly I'm not getting any more inquiries
    from
    >> >> users. When I tested it, it works fine. I have one
    of
    >> my
    >> >> co-worker tested from her home computer, she got the
    >> error
    >> >> message say: Microsoft VBScript runtime
    error '800a0046'
    >> >>
    >> >> Permission denied
    >> >>
    >> >> /thankyou.asp, line 300
    >> >>
    >> >> It seems strange to me because I'm not getting the
    same
    >> >> message she's got on any of computer I tested on,
    >> >> including my computers at home.
    >> >>
    >> >
    >> >
    >> >.
    >> >
    >
    >
    >.
    >
    Ken Guest

Similar Threads

  1. Replies: 11
    Last Post: August 25th, 04:44 PM
  2. Error : Microsoft VBScript runtime (0x800A000D)
    By virweb in forum Dreamweaver AppDev
    Replies: 2
    Last Post: May 16th, 11:14 PM
  3. Microsoft VBScript runtime error '800a01fb'
    By MDB in forum ASP Database
    Replies: 6
    Last Post: April 9th, 12:38 AM
  4. Microsoft VBScript runtime error '800a01c9'
    By Rahul Bakshi in forum ASP
    Replies: 3
    Last Post: September 28th, 05:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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