Security Exception when accessing the registry



Hello everyone,

I've got a security issue that I can't find a solution to and was hoping
someone could point me in the right direction.

I'm trying to open a registry key for read only access with
Registry.LocalMachine.OpenSubKey but I'm getting this security exception
"The application attempted to perform an operation not allowed by the
security policy. To grant this application the required permission please
contact your system administrator or change the application's trust level in
the configuration file."

I'm using ASPNet 2.0, Windows 2000 and IIS 5. The ASP.NET application
requests no authentication, runs as ASPNET and the builtin group Users has
read access to this key.

I understand that ASPNet 2.0 web apps have full trust? Is this true? (Not
in my case I suppose!) I haven't changed machine.config yet. The process
model tag is
<processModel autoConfig="true" />


What should I be looking for to check the web app has the correct
permissions please? I have used this with ASP.Net 1.1 and never had any
security issues.

Cheers for any help you can provide,

Jason.





.



Relevant Pages

  • Re: COM Component and Security
    ... Hi Lior, ... | Subject: Re: COM Component and Security ... | ASPNET user and not my NT user. ... |> information on the thread before impersonation began. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: COM Component and Security
    ... it will affect the way ASPNET functions. ... Implementing Impersonation in an ASP.NET Application ... | Subject: Re: COM Component and Security ... Assuming you're reverting at the right time, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Web Service Security problem
    ... the server. ... the failed logon attempt was ASPNET. ... >Allowin that account access to lan resources would be a large security risk. ... >> Another possible issue is the ASPNET account on the server. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: ASP.NET security issue
    ... There's a MS article on the security needed by aspnet on a web server. ... have an admin use the system the first time, or create a key using ... > administrator has to run the app first in order to let the 'regular user' ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • gettnig creasy - security
    ... most questions are about authentication and security here i see. ... which was able to browse all drives and files on my computer ... ASPNET - nothing was running anymore, ... hours with lockfile tools from ms, with third party tools - no im giving ...
    (microsoft.public.dotnet.framework.aspnet.security)