gabrielcas1
New Member
I reconfigured the web.config of web application and set trust level in full mode:\[code\]<securityPolicy> <trustLevel name="full" policyFile="internal"/></securityPolicy>\[/code\]and I read about full trust access in iis that have unrestricted access to system resource such as fileIO ,Socket , Registry.In my application a library that the name is "DAP.NET.Framework.Lock" access to the registry for the read and write data in *HKEY_CURRENT_USER\Software\Microsoft\MyApp* branch in registry.i add this Class Library to The Full-Trust Assembly Section in web.config :\[code\] <fullTrustAssemblies> <add assemblyName="DAP.NET.Framework.Lock" version="1.0.0.0" publicKey="null" /></fullTrustAssemblies>\[/code\]i don't know why this config dosn't apply and I Face this Security Exception: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.SecurityException: Requested registry access is not allowed.