473,398 Members | 2,368 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,398 software developers and data experts.

Setting registry permission after aspnet_setreg.

I am using aspnet_setreg but the permissions that it sets the registry to
leave the application unable to access the information. I want to add the
ASPNET account on the machine that our application is being installed on
with read privilege automatically. Does anyone know of a way to easily set
registry permissions? I would prefer to use .NET (C#) but I can always wrap
any code that does this. I am suspecting that this will involve C++ or
managed C++ as the registry classes within the .NET framework do not seem to
have properties to set permissions. It would be nice if aspnet_setreg had
the ability to set the permissions rather than defaulting to some that in my
case are unusable.

Thank you for your suggestions.

Kevin Burton
Nov 18 '05 #1
1 2073
Kevin Burton wrote:
I am using aspnet_setreg but the permissions that it sets the registry to
leave the application unable to access the information. I want to add the
ASPNET account on the machine that our application is being installed on
with read privilege automatically. Does anyone know of a way to easily set
registry permissions? I would prefer to use .NET (C#) but I can always wrap
any code that does this. I am suspecting that this will involve C++ or
managed C++ as the registry classes within the .NET framework do not seem to
have properties to set permissions. It would be nice if aspnet_setreg had
the ability to set the permissions rather than defaulting to some that in my
case are unusable.

Thank you for your suggestions.

Kevin Burton


I usually use the regedt32 command. You can set permissions in that
interface.....

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2

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

Similar topics

1
by: Duncan Allen | last post by:
I'm trying to use aspnet_setreg to encrypt user names & password used in the web.config file for use in the indentity element. When the website runs I get the message 'Error reading the password...
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: Paul | last post by:
Hi, I would like to know how to change permission on a registry key in C#. Anyone has done this before? Thanks, -P
0
by: Sharon McCarty | last post by:
Hi Everyone, I have a managed C++ web service and I'm trying to access the registry key that contains a binary data. Can someone tell me how to convert object __gc* to byte? I've got some...
0
by: MattC | last post by:
I'm trying to store my sqlconnection string in the registry but all I have found is aspnet_setreg which only stores the username and password, I want to store the entire string. I then found I...
2
by: Sachin | last post by:
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...
0
by: tcochunk | last post by:
I have a VS .Net 2003 solution that contains 2 projects. Project 1 is an ASP .Net application. Project 2 is an EXE that is executed from another program (no UI). Both projects interact with...
7
by: Austin Myers | last post by:
I need to be able to programmincally set (USER) permissions on a registry key. I've read the Knowledge Base articles and they all point to a couple of articles that seem to have been pulled form...
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.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.