468,734 Members | 2,365 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,734 developers. It's quick & easy.

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

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
2 7661
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
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.

Similar topics

reply views Thread by James B | last post: by
6 posts views Thread by Jonathan Crawford | last post: by
reply views Thread by zhoujie | last post: by
xarzu
2 posts views Thread by xarzu | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.