A lot of people requested this, so we've put all our efforts into it and even managed to finish it in time for the Q2 service pack that shipped just this Friday - download it if you haven't yet. Please hold on your dismay - deploying an ASP.NET application containing Telerik Reporting on a web host that requires Medium Trust permission level is now a reallity.

For those of you, who do not know what that means - you probably do not need it, but if you would like to know, check the following "ASP.NET Trust Levels and Policy Files" and "Use Medium Trust in ASP.NET 2.0" documents in MSDN.

There are some limitations of course, but hey believe us when we say we did a lot to get here. To summarize - Telerik Reporting works in Medium Trust environment with the following exceptions:

  • The PDF and Excel rendering extensions require UnmanagedCode permission to operate at all times. Take that into consideration when deploying your application and if necessary disable those extensions to avoid security exceptions. For more information refer to Configuring Telerik Reporting help section.
  • Creating TIFF images with CCITT Group 3/Group 4 or RLE compressions, require UnmanagedCode permission. These compressions are used to create bi-tonal images for sending through fax, so you would need the latter permission for such scenarios.
  • When Picturebox item shows images from Web i.e. it's value is an URL - this requires WebPermission. As you know the Picturebox item can be bound in various ways (more info in this blog post), so those of you setting its value to an URL, should be aware that this would not work unless the above permission is present.
  • Localization of Telerik Web ReportViewer through RESX resource files - requires Full Trust.
  • Internet Explorer 6 only: transparent colors in Shapes and Barcodes would not be rendered as expected - requires UnmanagedCode permission.

It's needless to say that we would be working on reducing the above list.

As you can see, having WebPermission and UnmanagedCode permission brings you fully functional reporting solution. So be nice to your kind and friendly web host providers if you plan on asking for those two :)


About the Author

Stefan Tsokev

Stefan’s main interests outside the .NET domain include rock music, playing the guitar and swimming.

Related Posts


Comments are disabled in preview mode.