My goal is to generate a PDF for display in a web page, either as aspx or with a generic handler. (This will link from a Silverlight page, but this is irrelevant to the problem.)
The problem is that LocalReport (Microsoft.Reporting.WebForms; Microsoft.ReportViewer.WebForms.dll) requires full trust, and our hosting server does not allow full trust. I am aware that ReportViewer has a remote mode that will allow it to run with partial trust, but for that I need a report server url which should probably have full trust as well, which does not solve anything.
So how do I generate PDFs from WebForms (RDLC reports) in a partially trusted environment?
EDIT: I am using C# 3.5 with VS 2008.
Unless I get any more answers to resolve the issue, this will be the best workaround:
I contacted the hosting server, and they have a separate server which allows access to Microsoft.ReportViewer (probably running full trust), but at an additional fee.