RDLC throwing security exception

RDLC throwing security exception

Old forum URL: forums.lhotka.net/forums/t/9393.aspx

bgilbert posted on Tuesday, August 17, 2010

I have an rdlc report file that I'm trying to render. This method uses a memorystream to write out the report. When I make this call (LocalReport.Render), it invokes the BusinessBase.OnDeserializedHandler. The BusinessBase is the base class for a custom identity class that implements IIdentity. The render method seems to be calling my Identity class to check security privileges and it fails with an error of "That assembly does not allow partially trusted callers." in the call to AddBusinessRules. I've signed all my assemblies, and added AllowPartiallyTrustedCallers to all projects. This method doesn't fail when called by other classes, only this rdlc/ReportViewer. 

Any insights would be greatly appreciated.


Copyright (c) Marimer LLC