# Azure and Medium Trust

This topic lists all the features limitations when you are using ActiveReports under Medium trust.

## Content



ActiveReports supports Azure. We recommended using Page/RDLX reports or SectionReports in CrossPlatform compatibility mode.

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.


> type=warning
> **Caution**: Medium trust does not adequately protect your application and should not be used. For more information see [MSDN](https://learn.microsoft.com/en-us/aspnet/aspnet/overview/web-development-best-practices/what-not-to-do-in-aspnet-and-what-to-do-instead#medium) link. 
> type=note
> **Note**:
> 
> *   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.
> *   For information on licensing a class library project, see the article on [Licensing Compiled Code](/activereportsnet/docs/v19.2/developers/ar-how-licensing-activereports/licensing-compiled-code).

## Feature Limitations

1.  [Export](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports) limitations:
    *   [RTF](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports/rtf-export), [Text](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports/text-export), [TIFF](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports/tiff-export) and [Excel](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports/excel-export) filters are not supported in Medium trust.
    *   Digital signatures cannot be used in case of [PDF rendering extension](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-reports/pdf-export-page-rdl) and [PDF export](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports/pdf-export).
    *   [Chart](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/chart-page-rdl) and [Tablix](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/tablix) control of Page Reports and RDLX Reports are not displayed properly in case of [PDF rendering extension](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-reports/pdf-export-page-rdl) and [PDF export](/activereportsnet/docs/v19.2/developers/export-reports/exporting-page-rdl-section-reports/pdf-export).
2.  The End User Designer and Windows Form Viewer controls require Full trust.
3.  The [Picture](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-section-report/picture) control does not support **metafiles**, which require Full trust.
4.  The **ImageType** property of the [Chart](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-section-report/chart-section) control must be set to **PNG**.
5.  OleObject, [Formatted Text](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/formattedtext) and Custom controls require Full trust.
6.  [Scripts](/activereportsnet/docs/v19.2/report-authors/design-reports/design-section-reports/report-events) requires Full trust, so if you need to use code in reports under Medium trust, use code-based reports rather than RPX format.
7.  WebViewer limitations:
    *   [Bullet](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/bullet) and [Sparkline](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/sparkline) controls of Page Reports and RDLX Reports are not displayed in all the Viewer types.
    *   Report containing the [Image](/activereportsnet/docs/v19.2/report-authors/report-controls/report-controls-page-rdl-report/image) control of Page Reports and RDLX Reports is not displayed properly in case of HTML type.

## Recommended Development Environment for Medium Trust Tests

**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
<trust level="Medium"></trust>
```

**To set up the PrintingPermission level**

Most hosting providers disable the printing permissions in a partially trusted environment.

1.  Open the web\_mediumtrust. config file (located in the \\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Config folder).
2.  Set the PrintingPermission level to NoPrinting.

```xml
<IPermission class="PrintingPermission"version="1"Level="NoPrinting"/>
```


> type=note
> **Note**: The default set of medium trust permissions is available in the web\_mediumtrust.config.default file.

## See Also

#### Developers

[Plugins Development](/activereportsnet/docs/v19.2/developers/plugins-development)
