Minimum Privileges for Debugging Local ASP.NET

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Minimum Privileges for Debugging Local ASP.NET

    Hi all!

    I'm trying to debug ASP.NET applications on my local computer, but with
    minimum privileges? I've added my limited user to the Debugger Users group.
    What else is needed to get debugging to work? I get the error message:
    Unable to start debugging on the web server. Access is denied. Debugging
    works fine (from what I can tell) when using an administrator account.

    Thank you in advance for any insight!

    Jonathan


    Jonathan Van Eenwyk Guest

  2. Similar Questions and Discussions

    1. Debugging output does not appear when use Debugging IPAddresses
      I recently absorbed the task of supporting our CF MX 6.1 server. We have an app that we need to debug - the developer asked us to add her IP...
    2. #25656 [Opn->Bgs]: Not able to set the minimum value
      ID: 25656 Updated by: pollita@php.net Reported By: vijay at mitoken dot com -Status: Open +Status: ...
    3. #25656 [NEW]: Not able to set the minimum value
      From: vijay at mitoken dot com Operating system: windows 2000 Professional PHP version: 4.3.3 PHP Bug Type: *General Issues...
    4. Minimum version of DB2?
      Hello All, What is the minimum version of DB2 that I would need to have a hot spare? I am concerned with ANY down time for the DB and need a way...
    5. Different types of privileges
      How do you distinguish between an admin privilege and an object privilege? Thanks
  3. #2

    Default RE: Minimum Privileges for Debugging Local ASP.NET

    Have you tried starting the application, then attaching to the ASPNET worker process?

    The Debugger Users should be enough (SHOULD be...) but try the VS Developers group as well.

    "Jonathan Van Eenwyk" wrote:
    > Hi all!
    >
    > I'm trying to debug ASP.NET applications on my local computer, but with
    > minimum privileges? I've added my limited user to the Debugger Users group.
    > What else is needed to get debugging to work? I get the error message:
    > Unable to start debugging on the web server. Access is denied. Debugging
    > works fine (from what I can tell) when using an administrator account.
    >
    > Thank you in advance for any insight!
    >
    > Jonathan
    >
    >
    >
    David Coe, MCAD Guest

  4. #3

    Default Re: Minimum Privileges for Debugging Local ASP.NET

    Thank you for the quick response!

    No, I'm not able to manually attach to the ASPNET worker process. I still
    get access denied. But I have found some other things out. If I change the
    ASPNET worker process to run as the same user as the one debugging, then it
    works. But this requires changing machine.config (it seems). Using
    impersonation in web.config doesn't seem to work. But from what I've read
    it seems that if I grant the user "Debug Programs" privileges in "Local
    Security Policy", then that user should be able to debug programs started by
    another user, in this case the worker process running as ASPNET. If that's
    the case, then I should be able to allow the worker process to continue to
    run under the account ASPNET, instead of the local user, while the local
    user will be able to debug the worker process because it has that privilege.
    But this doesn't seem to work. I'd prefer to be able to grant this
    privilege as opposed to editing machine.config, since the password would
    then be sitting there in plain text.

    This website referred to the idea of changing machine.config to get
    debugging to work:
    [url]http://www.derkeiler.com/Mailing-Lists/securityfocus/focus-ms/2004-07/0004.html[/url]

    This one talks about granting "Debug Programs" privileges:
    [url]http://www.bluevisionsoftware.com/WebSite/TipsAndTricksDetails.aspx?Name=AspNetDebugging[/url]

    Thank you again!

    Jonathan

    <David Coe>; "MCAD" <DavidCoeMCAD@discussions.microsoft.com> wrote in
    message news:02EF44E2-D1A3-4149-9D01-817ADFF7FC54@microsoft.com...
    > Have you tried starting the application, then attaching to the ASPNET
    worker process?
    >
    > The Debugger Users should be enough (SHOULD be...) but try the VS
    Developers group as well.
    >
    > "Jonathan Van Eenwyk" wrote:
    >
    > > Hi all!
    > >
    > > I'm trying to debug ASP.NET applications on my local computer, but with
    > > minimum privileges? I've added my limited user to the Debugger Users
    group.
    > > What else is needed to get debugging to work? I get the error message:
    > > Unable to start debugging on the web server. Access is denied.
    Debugging
    > > works fine (from what I can tell) when using an administrator account.
    > >
    > > Thank you in advance for any insight!
    > >
    > > Jonathan
    > >
    > >
    > >

    Jonathan Van Eenwyk 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