J
Jason
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.
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.