471,343 Members | 1,166 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,343 software developers and data experts.

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 7737
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 rosydwin | last post: by

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.