Configure application security and permissions
A Security Exception that occurs while recording an application is usually due to a lack of permissions—the recording machine does not have sufficient permissions to record the application. This is common where your application is not local, but on the Intranet or network.
To solve this problem, you need to allow the recording machine to access the application and the script with Full Trust.
One solution is to copy the application and save your script locally, since by default, users have Full Trust permissions to all local applications and folders.
An additional solution is to create new code groups that gives Full Trust to each application folder, and the script folder.

-
From the command prompt, run the caspol.exe application.
-
Set the required permission.

-
Open the .NET Configuration settings. Select Start > All Programs > Administrative Tools > Microsoft .NET Framework 2.0 Configuration. The .NET Configuration window opens.
-
Expand the Runtime Security Policy node to show the Code Groups of the machine.
-
Select the All_Code node.
-
Select Action > New. The Create New Code Group dialog box opens.
-
Enter a name for a new Code Group for your application or script. Click Next.
-
Select the URL condition type. In the URL box, specify the full path of the application or script in the format
file://...
and click Next.
-
Select the FullTrust permission set. Click Next
.
-
Click Finish in the Completing the Wizard dialog box. The configuration tool adds your Code Group to the list of existing groups.
-
Repeat the above procedure for all .NET applications that you plan to record.
-
Repeat the above procedure for the Vuser script folder.
Note: Make sure that the script folder has FullTrust permissions on all Load Generator machines that are participating in the test (OpenText Professional Performance Engineering only).