Salesforce

Using the Report Generator in a Network Installation (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Using the Report Generator in a Network Installation (Magic xpa 3.x)

Objective

This Technical Note explains how to use the new Magic xpa Report Generator when it is installed on a remote server.

Description

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.

Solutions

For regular workstations do the following:

  1. Check if you have an EXE file called: caspol.exe in the framework directory, such as: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\

    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

  2. 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:

  1. Run: Control Panel\Administrative Tools\Microsoft .NET 2 configuration.

  2. Go to run time security policy\machine\code groups\all_code.

  3. Right-click on all_code and select the New option.

  4. Give the code a name, such as RG, and click Next.

  5. Select URL, specify the URL of the Magic xpa folder with \* (for example: \\gourixp\Magic xpa 2.2\*), and click Next.

  6. Select full trust, click Next and then click Finish.

    Don't forget to specify \* after the name.

Related Topics

Reference
Attachment 
Attachment