ActiveReports 9 > ActiveReports User Guide > Getting Started > Viewing Reports > ActiveReports and the Web > Medium Trust Support |
All features of ActiveReports are available without restrictions in a Full trust environment. You can also use ActiveReports under Medium trust, but with limitations on some of the features.
Caution: Assemblies placed in the Global Assembly Cache, or GAC (C:\WINDOWS\ASSEMBLY), have Full trust permissions, so the results on your deployment machine may differ from those on your development machine. |
Note: If you see an evaluation banner when deploying your ActiveReports project, you should use the Web Key Generator utility to create the Web Key and integrate the license information into your project. |
To set up a Medium trust environment
Open the Web.config file and paste the following code between the <system.web> and </system.web> tags.
XML code. Paste BETWEEN the system.web tags. |
Copy Code
|
---|---|
<trust level="Medium"></trust> |
To set up the PrintingPermission level
Most hosting providers disable the printing permissions in a partially trusted environment.
XML code. Paste BETWEEN the system.web tags. |
Copy Code
|
---|---|
<IPermission class="PrintingPermission"version="1"Level="NoPrinting"/> |
Note: The default set of medium trust permissions is available in the web_mediumtrust.config.default file. |