5 Comments to “Working Around Microsoft’s ReportViewer #Error Bug”

  1. Bane

    Aug 5th, 2010

    I have the same error. The problem I found was related with tag in web.config. If you have it set with the globals in ReportViewer are not working at all. It is a bug with no obvious relation with ReportViewer. Hopefully someone will find a solution…

    Best regards,
    Bane

  2. Bane

    Aug 5th, 2010

    Sorry it cut one piece of text… It should be:
    The problem I found was related with roleManager tag in web.config. If you have it set with enabled=true the globals in ReportViewer are not working at all.

  3. Eric

    Aug 23rd, 2010

    Bane,
    You’re saying all this might just go away if I change that setting? I will try it out!

    Thanks, Eric

  4. Nioosha

    Nov 3rd, 2011

    Just this two lines will solve the problem completely:

    System.Security.PermissionSet sec=new System.Security.PermissionSet(System.Security.Permissions.PermissionState.Unrestricted);
    ReportViewer1.LocalReport.SetBasePermissionsForSandboxAppDomain(sec);

  5. Eric

    Nov 3rd, 2011

    I didn’t know that, Nioosha. Thanks! I will also try that out!


Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.