Ask a Question related to ASP.NET General, Design and Development.
-
Mark #1
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
-
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... -
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... -
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... -
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 -
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... -
S. Justin Gengo #2
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...name> 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> 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
-
Mark #3
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...is> 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...> name> > 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> > to the registry entries how can I find the username the aps.net servicethe> > running under so that I can programmatically grant this user access tofinish> > registry keys created? You would think the aspnet_setreq.exe wouldtool> > 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 theasp.net> > 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>> > 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



Reply With Quote

