Adding Permissions in the .NET Framework Configuration Tool

The list of permissions that display in the Security tab permissions list box is the same as the list in the "Everything" permission set of the .NET Framework 4.0 SDK Configuration tool runtime security policy.

To add permission settings that are not in the custom permissions list:

  1. Close PowerBuilder if it is open, and create an XML file with the permission settings you want to add.
    For example, by default, the SMTPPermission setting is not included in the assigned permissions in the "Everything" permission set. To create this permission, save a file named SMTPPermission.xml with the following content:
    <IPermission class="System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true"/>
  2. Open the .NET Framework SDK Configuration tool from the Administrative Tools folder in your computer Control Panel.
  3. In the left pane of the configuration tool, select My Computer > Runtime Security Policy > Machine > Permission Sets > Everything, then select the Action > Change Permissions menu item.
  4. In the Create Permission Set dialog box, click Import to open the Import a Permission dialog box, browse to the SMTPPermission.xml file, and click OK.
  5. Click Finish, close the configuration tool, and open a .NET project in PowerBuilder to the Security tab page.
    The SMTPPermission displays in the list box of the Security tab page. You can scroll the list to see it when you select any radio button option other than Full Trust.