Due to an earlier issue with winforms in VS 2005 and 2008 (see
https://www.experts-exchange.com/questions/23579806/Inner-Exception-The-Path-is-not-of-a-legal-form.html) I am trying to build my application in a web based environment. My application requires access to the registry but when run, I recieve this error:
Description: 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.
Exception Details: System.Security.SecurityEx
ception: Requested registry access is not allowed.
I made appropriate changes to the web.config file, adding the following lines...
<securityPolicy>
<trustLevel name="Full" policyFile="internal" />
</securityPolicy>
...but that didn't make a difference...
I then found this post:
http://forums.codecharge.com/posts.php?post_id=67135 and tried to make the recommended changes. I successfully changed the security settings for the ASPNET user but could find the settings in the machine.config file as outlined in part 2 of the solution....
...None of that helped...
So, does anybody have any other suggestions as to how to allow my application the necessary permission to read and write to the registry.
Thanks in advance.
Jerute
ASKER
Tx anyway.