473,322 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Which account neets permission to read the Registry key.

Hi All,

I am using aspnet_setreg.exe to encrypt the username and password and store
them in Web.Config file for impersonation.

I have given ASPNET and Impersonation account to read the registry key.

However, while running the application it fails saying that can't read the
password for Registrty.

If I give read permission to "Everyone" it works fine.

Can anyone please tell me which account ASP.NET application uses to read the
registry key or how do find out which account it is trying to use.

I dont want to give read permission to "everyone".

Thanks in advance
Sachin
Nov 19 '05 #1
2 3213
There is no "impersonate" account. If you have impersonation turned on,
then the account trying to access the registry is the account of the person
accessing the website.

"Sachin" <an********@microsoft.com> wrote in message
news:eq*************@tk2msftngp13.phx.gbl...
Hi All,

I am using aspnet_setreg.exe to encrypt the username and password and
store
them in Web.Config file for impersonation.

I have given ASPNET and Impersonation account to read the registry key.

However, while running the application it fails saying that can't read the
password for Registrty.

If I give read permission to "Everyone" it works fine.

Can anyone please tell me which account ASP.NET application uses to read
the
registry key or how do find out which account it is trying to use.

I dont want to give read permission to "everyone".

Thanks in advance
Sachin

Nov 19 '05 #2
Which OS are you running? Giving permissions for ASPNET works only for Win
XP Pro. If you are using Win 2003, give the same permissions for
'serverName\Network Service'

"Sachin" <an********@microsoft.com> wrote in message
news:eq*************@tk2msftngp13.phx.gbl...
Hi All,

I am using aspnet_setreg.exe to encrypt the username and password and store
them in Web.Config file for impersonation.

I have given ASPNET and Impersonation account to read the registry key.

However, while running the application it fails saying that can't read the
password for Registrty.

If I give read permission to "Everyone" it works fine.

Can anyone please tell me which account ASP.NET application uses to read the
registry key or how do find out which account it is trying to use.

I dont want to give read permission to "everyone".

Thanks in advance
Sachin

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sine Nomine | last post by:
Hi, One of the users of my program has been having difficulties, and I've pinpointed the problem to the following. I have a line of code like: RegistryKey key = Registry.CurrentUser.OpenSubKey(...
7
by: Bob | last post by:
I'm working on a Windows app that needs to write to the Registry HKLM. I keep getting a "System.UnauthorizedAccessException: Cannot write to the registry key." error when running the app. I'm...
0
by: Justin | last post by:
Does anyone know how to determine if the guest account is disabled on a remote computer on the server? I was thinking I could read a registry key to do it, but I do not know if such a key exists....
1
by: WTH | last post by:
....I call a method on it which trys to read the registry. I can open/close/manipulate databases just fine but the registry? Bang, exception... The object works fine from a regular C# windows...
2
by: lolaolegerl | last post by:
I am in search of some help in order to remove my hotmail email notifications at the Welcome screen. Somehow my .net account has become associated with my XP account. If i try to remove it from...
7
by: Austin Myers | last post by:
I don't think I can do what I wanted initially, setting a registry keys permissions via code and grant user permission. So, can anyone tell me, is there a place in the registry where people...
4
by: yxq | last post by:
Hello, I want to get the registry key permission information whether current user has the permission to delete the registry key using RegistryRights, how to do? thank you.
2
by: DaBrain | last post by:
I am no DBA, but this is my task. I have an SQL Server 2000 Database that has an "SQL Account" that has execute permission on all Stored procedures. it is what was used by the company. This...
4
by: jamesnkk | last post by:
Hello, I am a newbie in Linux. My company have a tester machine installed with Suse 10 samba. I have set the IP address of the Linux machine to connect into the Windows 2003 server. So from my...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.