• πŸ˜€ Hi all,

    I could fix my permission problem. I add the following code to the assembly:

    Imports System.Security.Permissions

    Public Class DataDrivenStyleLibrary

    Public Shared Function dbStyle(ByVal inputStyle As String, ByVal InputStyleType As String) As String

    Dim permission As SqlClientPermission = New SqlClientPermission(PermissionState.Unrestricted)

    permission.Assert()

    sStyle = ""

    I found the trick here http://softwareexpertsolutions.blogspot.com/2007/06/creating-and-deploying-reporting.html

    I added in rssrvpolicy.config my code group like:

    <CodeGroup class="UnionCodeGroup"

    version="1"

    PermissionSetName="FullTrust"

    Name="DynamicStyleLibrary"

    Description="Dynamic Reports">

    <IMembershipCondition

    class="UrlMembershipCondition"

    version="1"

    Url="C:\Program Files\Microsoft SQL Server\MSSQL.X\Reporting Services\ReportServer\bin\DynamicStyleLibrary.dll"/>

    </CodeGroup>

    I restarted IIS & RS .

    I hope this will solve the other issue as well.

    Many thanks for this great blog.

    Regards,

    RenΓ©