locked
The Hidden expression for the tablix ‘Details9’ contains an error RRS feed

  • Question

  • User-1782670433 posted

    Hi,

    I am getting the following error when the report viewer loads. It only occurs if I use the expression below to hide a table row if there is no value. Any Ideas?

      • The Hidden expression for the tablix ‘Details9’ contains an error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
        =IIF(Fields!SeniorMM.Value="",True,False)






    Wednesday, May 30, 2012 1:43 PM

Answers

  • User-1782670433 posted

    NM found a solution

     

     Protected Sub ReportViewer1_Load(sender As Object, e As System.EventArgs) Handles ReportViewer1.Load
    
            ReportViewer1.LocalReport.SetBasePermissionsForSandboxAppDomain(New PermissionSet(PermissionState.Unrestricted))
        End Sub

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 30, 2012 4:51 PM

All replies

  • User-1782670433 posted

    NM found a solution

     

     Protected Sub ReportViewer1_Load(sender As Object, e As System.EventArgs) Handles ReportViewer1.Load
    
            ReportViewer1.LocalReport.SetBasePermissionsForSandboxAppDomain(New PermissionSet(PermissionState.Unrestricted))
        End Sub

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, May 30, 2012 4:51 PM
  • User-650628323 posted

    Hi,

    I'm glad to hear that you resolve this issue.Thank you for sharing your solutions and experience here. It will be very beneficial for other community members who have similar questions.
    If you have any difficulty in future programming, we welcome you to post in forums again.

    Monday, June 4, 2012 5:44 AM