SSRS Custom Assembly Security Problem RRS feed

  • Question

  • I have a C# dll called GSS.Cryptography.dll which I'm trying to reference from within an SSRS report.  I added the dll to the GAC and referenced it within the SSRS report.  When I try and run the report from within Visual Studio, I get the message:

    An error occured during local report processing.

    Failed to load expression host assembly.  Details: System.Security.Permissions.SecurityPermissions

    I tried added the following section to the rsmgrpolicy.config and the rssrvpolicy.config files (along with a few other iterations), but nothing made any difference:

    <CodeGroup class="UnionCodeGroup"
             Description="A special code group for my custom assembly.">
             <IMembershipCondition class="UrlMembershipCondition"
                Url="C:\Program Files\Microsoft SQL Server\MSRS10.SQLSTANDARD\Reporting Services\ReportServer\bin\GSS.Cryptography.dll"/>

    Can anyone tell me what I'm missing here?

    Tuesday, June 26, 2012 8:52 PM