473,394 Members | 1,155 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,394 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 3218
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
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.