By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,916 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,916 IT Pros & Developers. It's quick & easy.

System.Security.SecurityException: Requested registry access is not allowed.

P: n/a
I keep getting this error when my asp.net application tries to write into
the registry
System.Security.SecurityException: Requested registry access is not allowed.

I followed the following article and I still get the error:
http://support.microsoft.com/default...b;en-us;329291

Any suggestions?

Thanks

Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
When you say write to the registry, do you mean using the EventLog? Or do
you mean explicitly writing to the registry? The account that your ASP.NET
code is running as needs the rights to do whatever you're trying to do. Under
IIS5 it's the local ASPNET account. Under IIS6 it's the local Network Service
account.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I keep getting this error when my asp.net application tries to write
into
the registry
System.Security.SecurityException: Requested registry access is not
allowed.
I followed the following article and I still get the error:
http://support.microsoft.com/default...b;en-us;329291

Any suggestions?

Thanks


Nov 19 '05 #2

P: n/a
Actually the problem was that I did not creat the Installet class properly
so Gacutil was unable to create the right permissions for my ASPNET user.

Thanks for your help
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:76**********************@msnews.microsoft.com ...
When you say write to the registry, do you mean using the EventLog? Or do
you mean explicitly writing to the registry? The account that your ASP.NET
code is running as needs the rights to do whatever you're trying to do.
Under IIS5 it's the local ASPNET account. Under IIS6 it's the local
Network Service account.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I keep getting this error when my asp.net application tries to write
into
the registry
System.Security.SecurityException: Requested registry access is not
allowed.
I followed the following article and I still get the error:
http://support.microsoft.com/default...b;en-us;329291

Any suggestions?

Thanks


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.