Re: Possibtl to Create a Code Group Programmatically?
Date: 09/06/05

Date: 6 Sep 2005 09:16:41 -0700

Ok, I got my control working and I tried it in the User Control. It
raised the following exception:

Server Error in '/WinFormsTestWS' Application.

Policy level Machine cannot be saved.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Policy level
Machine cannot be saved.

Source Error:

Line 76:
Line 77: machineLevel.RootCodeGroup.AddChild(myCodeGroup);
Line 78: SecurityManager.SavePolicyLevel(machineLevel);
Line 79: }
Line 80: