Need help with impersonating for GetCurrentProcess call.

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

  1. #1

    Default Need help with impersonating for GetCurrentProcess call.

    I am fairly new to ASP.NET, and am not sure about a problem that I am having
    and how to resolve it.

    My web page needs to make a call to Process.GetCurrentProcess() for some
    logging class that I am using in my web page. However, when the call is
    made I get an exception indicating that Access is denied for the call. I
    noticed that the documentation on GetCurrentProcess mentions something about
    using PermissionState.Unrestricted, but I don't quite understand what is
    expected to make this work. As of right now, my site does not do
    impersonation in web.config and I would prefer to not have to set it for
    various reasons. Could someone tell me what I need to do to allow this call
    to go through?

    --
    -----------------------------------
    Ken Varn
    Senior Software Engineer
    Diebold Inc.

    EmailID = varnk
    Domain = Diebold.com
    -----------------------------------


    Ken Varn Guest

  2. Similar Questions and Discussions

    1. ASP.Net not impersonating for WSE 2.0
      I have several web services that use WSE to authenticate calling users. I use a UsernameToken that validates the sent username and password against...
    2. ASP.Net not impersonating for WSE 2.0 AuthenticateToken method
      I have several web services that use WSE to authenticate calling users. I use a UsernameToken that validates the sent username and password against...
    3. HELP WITH IMPERSONATING
      Hi, I am a newbie at asp.net so I appreciate all of your help. I have a datagrid displaying unc_path's as a hyperlink to network shares. The...
    4. ASP.NET Impersonating a Certain User At Run time
      If you looking for a way to use Forms Authentication with Active Directory, following web site may be a worth reading as your start point. I'm...
    5. Who am I impersonating?
      Is there a way I can get the user of the identity I will be impersonating to get network resources? I know WindowsIdentity.GetCurrent().Name for...
  3. #2

    Default RE: Need help with impersonating for GetCurrentProcess call.

    The user that you are running ASP.NET as (see <processModel> in the machine.config) will need to be granted the proper access to the running processes.
    David Coe, MCP 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