Professional Web Applications Themes

"Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server - ASP.NET Security

Hi all, I am trying to run schtasks.exe from asp.net application wich uses forms authentication under ASPNET account. It gives me "Access is denied" error message. OS: Windows 2003 server with IIS 6.0 Info: I am able to run the same command line manually using Administrator's account on Windows 2003 server. I am able to run the same command line programmatically on Windows 2000 Professional under ASPNET account. Impersonation is disabled. The password for ASPNET is set and being used in schtasks.exe command line. I am able to run other command line apps (like gpg.exe) programmatically on on Windows 2003 ...

  1. #1

    Default "Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server

    Hi all,

    I am trying to run schtasks.exe from asp.net application wich uses forms
    authentication under ASPNET account.
    It gives me "Access is denied" error message.
    OS: Windows 2003 server with IIS 6.0

    Info:
    I am able to run the same command line manually using Administrator's
    account on Windows 2003 server.
    I am able to run the same command line programmatically on Windows 2000
    Professional under ASPNET account.
    Impersonation is disabled.
    The password for ASPNET is set and being used in schtasks.exe command line.
    I am able to run other command line apps (like gpg.exe) programmatically on
    on Windows 2003 server using ASPNET account.
    The filesystem privileges are set to allow ASPNET user full control.
    The registry privileges allow ASPNET user to access registry.
    ASPNET is a memeber of Administrators group


    Could you please give me an idea on what else should I check?

    Thanks a lot,

    Yehuda Vernik


    Yehuda Vernik Guest

  2. #2

    Default Re: "Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server

    On Tue, 19 Oct 2004 12:02:23 -0400, "Yehuda Vernik" <yvernikplusfunds.com> wrote:

    Hi all,

    I am trying to run schtasks.exe from asp.net application wich uses forms
    authentication under ASPNET account.
    It gives me "Access is denied" error message.
    OS: Windows 2003 server with IIS 6.0

    Info:
    I am able to run the same command line manually using Administrator's
    account on Windows 2003 server.
    I am able to run the same command line programmatically on Windows 2000
    Professional under ASPNET account.
    Impersonation is disabled.
    The password for ASPNET is set and being used in schtasks.exe command line.
    I am able to run other command line apps (like gpg.exe) programmatically on
    on Windows 2003 server using ASPNET account.
    The filesystem privileges are set to allow ASPNET user full control.
    The registry privileges allow ASPNET user to access registry.
    ASPNET is a memeber of Administrators group


    Could you please give me an idea on what else should I check?


    Windows 2003 Server uses an account called NetworkService instead of ASPNET.


    Paul ~~~ [email]pclementameritech.net[/email]
    Microsoft MVP (Visual Basic)
    Paul Clement Guest

Similar Threads

  1. Error "creating file: 1008:5, -5000 Access Denied Error"
    By tcervo in forum Macromedia Flash Player
    Replies: 9
    Last Post: May 3rd, 11:51 PM
  2. "Access Denied" Error After Server Change
    By TeKnIcIaN99 in forum Macromedia Contribute Connection Administrtion
    Replies: 0
    Last Post: September 8th, 03:23 PM
  3. "Server does not exist or access is denied"
    By CAN'T SEE THE SERVER FROM VS SERVER EXPL in forum ASP.NET Web Services
    Replies: 0
    Last Post: April 6th, 05:51 AM
  4. Replies: 2
    Last Post: February 16th, 06:40 PM
  5. Error: "Unable to debug on server,Access is denied"
    By ganesh in forum ASP.NET General
    Replies: 1
    Last Post: August 6th, 11:33 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