Q329290 getting ASP.NET userName

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

  1. #1

    Default Q329290 getting ASP.NET userName

    In this article [url]http://support.microsoft.com/?id=329290[/url] I will have to
    perform this in my installation. The question is since the
    aspnet_setreg.exe does not automatically grant the asp.net service user name
    to the registry entries how can I find the username the aps.net service is
    running under so that I can programmatically grant this user access to the
    registry keys created? You would think the aspnet_setreq.exe would finish
    off the job by granting the asp.net service access to the registry keys.
    Who else would the asp.net website run as that will have access to the
    registry keys if you are actually using this tool?!? Or only if the tool
    had a switch to allow it to automatically grant the current asp.net user
    access to the registry keys if it does not have access.

    So, just some insight on how to determine what the username of the asp.net
    account is in C# :) I have a guess that if the <ProcessModel> attribute
    userName="machine" it might be aspnet or networkuser on 2003 right?

    -Mark


    Mark Guest

  2. Similar Questions and Discussions

    1. How can I get the domain name and username?
      I'm new with .net programming....so pls bear with me. May I ask how can I get the domain name and username of user who is trying access my web...
    2. Show username after login | Example: Welcome "USERNAME"to your Backoffice.
      hi. I've created a backoffice in php, and i would like to apply on the page the name of the user who has just logged in. Example: Welcome...
    3. password/username
      i have figured out how to "insert record' and when i fill in the text areas the page inserts the names into my database labeled passwords. what i...
    4. Username and password?
      Thanks for this but I keep getting directed to Dreamweaver UltraDev. Do I need this or can I do it with MX? northerncaller
    5. Username won't change
      My original username was changed to something else, but it still comes up as the old username in certain descriptions and saves all downloaded...
  3. #2

    Default Re: Q329290 getting ASP.NET userName

    Mark,

    Unless you changed it it will be running as ASPNET.

    You can verify that this user exist by going to your Computer Management
    window and opening the "Users" folder. You should see ASPNET in the list.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche
    "Mark" <postOnly@news.group> wrote in message
    news:%230q26HCXDHA.2444@tk2msftngp13.phx.gbl...
    > In this article [url]http://support.microsoft.com/?id=329290[/url] I will have to
    > perform this in my installation. The question is since the
    > aspnet_setreg.exe does not automatically grant the asp.net service user
    name
    > to the registry entries how can I find the username the aps.net service is
    > running under so that I can programmatically grant this user access to the
    > registry keys created? You would think the aspnet_setreq.exe would finish
    > off the job by granting the asp.net service access to the registry keys.
    > Who else would the asp.net website run as that will have access to the
    > registry keys if you are actually using this tool?!? Or only if the tool
    > had a switch to allow it to automatically grant the current asp.net user
    > access to the registry keys if it does not have access.
    >
    > So, just some insight on how to determine what the username of the asp.net
    > account is in C# :) I have a guess that if the <ProcessModel> attribute
    > userName="machine" it might be aspnet or networkuser on 2003 right?
    >
    > -Mark
    >
    >

    S. Justin Gengo Guest

  4. #3

    Default Re: Q329290 getting ASP.NET userName

    Justin,

    Thank you for your response to my question. The issue is I will not be the
    one installing the sotware on customer systems and I refuse to have special
    instructions to have the installer grant special rights in the registry.
    This process should be automatic for out of the box installation solutions.
    These days web applications are not just in house server farm solutions they
    are sold like windows applications and installed by sometimes average users.

    Basically the task of a user looking up the aspnet user manually, and
    granting the access to the newly created registry keys to the aspnet user i
    will have to perform this programmatically.

    So far if the system is windows 2000 the user is apsnet if the <processModel
    userName="machine"...> and if windows 2003 it will be networkuser i think..
    will have to confirm this. But when installed on a domain controler i am
    not sure what the user will be. On a system i have here it seems the user
    is the anonymous web user. But now to determine how to use the
    RegistryPermission class to grant these users access to the new registry
    keys created.

    -Mark


    "S. Justin Gengo" <sjgengo@aboutfortunate.com> wrote in message
    news:%23pGbQMCXDHA.1680@tk2msftngp13.phx.gbl...
    > Mark,
    >
    > Unless you changed it it will be running as ASPNET.
    >
    > You can verify that this user exist by going to your Computer Management
    > window and opening the "Users" folder. You should see ASPNET in the list.
    >
    > Sincerely,
    >
    > --
    > S. Justin Gengo, MCP
    > Web Developer
    >
    > Free code library at:
    > [url]www.aboutfortunate.com[/url]
    >
    > "Out of chaos comes order."
    > Nietzche
    > "Mark" <postOnly@news.group> wrote in message
    > news:%230q26HCXDHA.2444@tk2msftngp13.phx.gbl...
    > > In this article [url]http://support.microsoft.com/?id=329290[/url] I will have to
    > > perform this in my installation. The question is since the
    > > aspnet_setreg.exe does not automatically grant the asp.net service user
    > name
    > > to the registry entries how can I find the username the aps.net service
    is
    > > running under so that I can programmatically grant this user access to
    the
    > > registry keys created? You would think the aspnet_setreq.exe would
    finish
    > > off the job by granting the asp.net service access to the registry keys.
    > > Who else would the asp.net website run as that will have access to the
    > > registry keys if you are actually using this tool?!? Or only if the
    tool
    > > had a switch to allow it to automatically grant the current asp.net user
    > > access to the registry keys if it does not have access.
    > >
    > > So, just some insight on how to determine what the username of the
    asp.net
    > > account is in C# :) I have a guess that if the <ProcessModel> attribute
    > > userName="machine" it might be aspnet or networkuser on 2003 right?
    > >
    > > -Mark
    > >
    > >
    >
    >

    Mark 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