Expression give errors when executing rdlc file RRS feed

  • Question

  • User1185521526 posted

    Hi, I'm using rdlc files for creating pdf files for download from ASP.Net 4.0 websites.
    Now I'm having trouble with one Visual Studio 2010/ASP.Net 4.0 WebSite that seems to have problems while executing the report.
    It always happens if I use an expression inside my report.

    The Value expression for the textrun ‘Textbox4.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Code: rsRuntimeErrorInExpression
    Severity: 0
    ObjectType: TextRun
    ObjectName: Textbox4.Paragraphs[0].TextRuns[0]

    It happens while debugging with WinXP+VS2010 as well as on production environment with Win2k3 Server+IIS 6.
    The formula of the expression is, e.g. =Parameters!par01.Value & "xxx"

    I have many other websites on these both systems that don't get this problem, so it's not a general problem of the environment.
    The one I mentioned is the only one where I get this problem.

    Does anybody have an idea/solution?

    Thanks in advance.

    Friday, March 30, 2012 5:23 AM


All replies

  • User2105670541 posted

    why the expression is:

    Parameters!par01.Value & "xxx"

    I think it should be like:

    =Parameters!par01.Value & "xxx"
    Friday, March 30, 2012 5:25 AM
  • User1185521526 posted

    It's because I directly copied it from the xml-code.

    In the editor it's displayed like you wrote.

    Friday, March 30, 2012 5:28 AM
  • User2105670541 posted

    below thread mentioned the problem you are facing and given a solution to problem like yours, please have a look:


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 30, 2012 6:29 AM
  • User1185521526 posted

    This worked for me.

    I also don't understand why it is neccessary for that website, but I am happy to have a solution.

    Thanks a lot!

    Monday, April 2, 2012 3:57 AM