Using the Report Generator in a Network Installation (Magic xpa 4.x)
This Technical Note explains how to use the new Magic xpa Report Generator when it is installed on a remote server.
The activation of the Report Generator usually only requires adding the Report Generator to the Component repository of the project.
The Report Generator requires .NET Framework 2.0 or 3.5, which has some security issues that prevent the execution of files residing on remote servers. Therefore, when Magic xpa is installed on a remote server there is a problem running the Report Generator.
For regular workstations do the following:
-
Check if you have an EXE file called: caspol.exe in the framework directory, such as: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\
You can read about Caspol at the following locations:
http://msdn2.microsoft.com/en-us/library/cb6t8dtz(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/073ba759.aspx
-
Open the command line and run the following command:
caspol -quiet -machine -addgroup All_Code -url file://F:/magic/Add_On/ReportGenerator/* FullTrust -n "ZReportGenerator"
(Change "F:/magic/Add_On/ReportGenerator" to the folder of the Report Generator).
Note that the network mapping might be different (it could be mapped directly to the magic directory), so the file reference should be modified accordingly.
We recommend creating a batch file that will run the command and then executing the batch file on each workstation.
If you have .NET 2 SDK do the following:
-
Run: Control Panel\Administrative Tools\Microsoft .NET 2 configuration.
-
Go to run time security policy\machine\code groups\all_code.
-
Right-click on all_code and select the New option.
-
Give the code a name, such as RG, and click Next.
-
Select URL, specify the URL of the Magic xpa folder with \* (for example: \\gourixp\Magic xpa 2.2\*), and click Next.
-
Select full trust, click Next and then click Finish.
Don't forget to specify \* after the name.
Using Magic xpa in a Network Installation