|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
after changed the permisssion set to "nothing", I can't set the .net configuration anymore?after I changed the permisssion set of All_Code to "nothing"
, I can't set the .net configuration anymore? even the Caspol.exe tool can't work anymore. it just shows that "System.Security.Policy.PolicyException" error? and the Microsoft .NET Framework 1.1 setting in Control Panel also can't run.... what can I do to solve this problem, pls? One of the consequences of denying local code the right to run is that you
can no longer use the policy modification tools. One can usually work around the problem relatively simply by editing the policy configuration files directly. See http://msdn.microsoft.com/library/en-us/cpguide/html/cpconsecurityconfigurationfiles.asp if you need help locating the configuration file(s) corresponding to the policy level(s) you have edited. If there's some specific goal you were trying for when you made this particular edit and you would like help with it, could you please provide more details regarding your desired outcome? Show quoteHide quote "tw" <aqea***@gmail.com> wrote in message news:1139999016.509412.304230@g44g2000cwa.googlegroups.com... > after I changed the permisssion set of All_Code to "nothing" > , I can't set the .net configuration anymore? > > even the Caspol.exe tool can't work anymore. > it just shows that "System.Security.Policy.PolicyException" error? > > and the Microsoft .NET Framework 1.1 setting in Control Panel > also can't run.... > > what can I do to solve this problem, pls? > thank you, Nicole.
I've solve this by modifing the User policy configuration file "%USERPROFILE%\Application data\Microsoft\CLR security config\vxx.xx\Security.config". This error happened because some client cannot execute my .net program. They had a message as following: 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. So I just try to make the same situation to find the answer.... Hi tw,
IMHO, it may be a better idea to set the CAS Permission level to "Everything" first, if the program works just fine, then try tightening the levels. I don't think it would be such a good idea to set the Permission set to Nothing directly. I'm also interested to see if someone has a better answer for determining the conflicting security config. Setting CAS to "Everything" is different from "Full Trust" because no security checks are performed on the latter. Regards, Cerebrus. Show quoteHide quote "tw" <aqea***@gmail.com> wrote in message news:1140053846.161482.132610@f14g2000cwb.googlegroups.com... > thank you, Nicole. > > I've solve this by modifing the User policy configuration file > "%USERPROFILE%\Application data\Microsoft\CLR security > config\vxx.xx\Security.config". > > This error happened because some client cannot execute my .net program. > They had a message as following: > 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. > > So I just try to make the same situation to find the answer.... >
Problem with RSA.ImportParameters() under ASP .NET
Issues With User Control Embedded Into Web Page Since Installing .NET 2.0 CryptoAPI moving .net containers Translate BUILTIN to domain name Encyption NEED Solution for .NET 2.0 mscorcfg.msc w/o SDK impersonation in vb.net web.config security conn-str and auth-info Blocking hyperlink access to 'secured' website |
|||||||||||||||||||||||