• Thank you! Very helpful article and works perfect with .RDL. But how to make .RDLC work?

    I have installed VS 2008, reporting services 2005. Tried to copy my dll into C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer\bin and

    C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies

    (for some reason I do not have RSPreviewPolicy.config in C:\Program Files\Microsoft Visual Studio 9\Common7\IDE....

    then in my RSPreviewPolicy.config changed

    <PermissionSet

    class="NamedPermissionSet"

    version="1"

    Unrestricted="true"

    Name="SSRSAssemblyLibraryPermissionSet"

    Description="Allows access to SSRSAssembly Reporting resources">

    <IPermission class="SecurityPermission"

    version="1" Flags="Execution, Assertion" />

    and

    <CodeGroup

    class="UnionCodeGroup"

    version="1"

    PermissionSetName="SSRSAssemblyLibraryPermissionSet"

    Name="SSRSAssembly"

    Description="SSRSAssembly">

    <IMembershipCondition

    class="UrlMembershipCondition"

    version="1.0.0.0"

    url="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\SSRSAssembly.dll"/>

    and it still does not work. What I made wrong?

    I really appreciated if anybody can help me. thanks

    An error occurred during local report processing.

    The definition of the report 'Main Report' is invalid.

    Error while loading code module: ‘SSRSAssembly, Version=3.0.0.1, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'SSRSAssembly, Version=3.0.0.1, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.