Running report viewer in medium trust environment, or alternatives

Posted on 2010-04-07
Medium Priority
Last Modified: 2012-05-09
I have just fallen foul of an unforseen problem. I have developed a .net 3.5 application using the reportviewer control to generate a PDF automatically (using VB code) and store it in a directory on the server. I later attach this pdf to an email and send it to the customer.

However I have just uploaded it to my clients host. This is a shared host (uses HELM control panel) and runs all applications with a security level of medium trust.

Google tells me (cos google knows almost everything) that the report viewer will not run under medium trust but requires full trust permissions, something I am not likely to get.

Does anyone know a way to run a reportviewer in local mode under medium trust. I saw some articles talking about copying DLL's into the bin folder (which this hoster allows) but I cant get copies of them from my machine.

The reccomended dll's to place into the bin folder were


Has anyone got any experience with this. I am very worried that I will have to rewrite all the reports. Stupidly developed the app with full security so didn't notice until deployment.


Question by:FutureOak
LVL 10

Expert Comment

ID: 30064065
Great Lesson, Just wait until sponsors want to leverage Azure. My Current host (Crystaltech) has tools for loading .NET controls.
It may be that the folder you are writing the report to just needs for Everyone to have Full Control forcing you to try and hide the folder name as the only access control.  If the control is not loading, call the host first before rewriting.


Accepted Solution

FutureOak earned 0 total points
ID: 30521410
thanks for the comments, not sure this one is going to get an answer. Thanks for the input but it didn't really help me get to a soultion. I am now trying itextsharp which is free and works in medium trust. Lesson learnt and will use this in the future.

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
Whether you have a site with just static html pages or a dynamic database-driven one, this step-by-step migration guide will help you get started with your new DV server. This guide is by no means comprehensive but it should cover the basics to get …
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question