change permissions

  • Thread starter Thread starter Free
  • Start date Start date
F

Free

Hi,

I would like to modify the permission on a registry using .NET
For example, the account aspnet has no permission to read or write by
default. How to add permissions using code ?

thanks for your responses...

Guillaume
 
Hi Guillaume,

Thanks for your post. I agree with Eric that we are not able to add
permissions in code with a user who does not have enough privillege to
change the registry permission. In addition, you have to log on with an
administrative account, execute the "regedt32.exe", and grant ASPNET
account to a specific registry key manually.

Another method to work around this problem is to use ASP .NET Impersonation
with an account can access the registry key. Please refer to the following
MSDN article:

ASP.NET Impersonation
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html
/vxconImpersonation.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top