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=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed.
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.
webjagger
Member
52 Points
40 Posts
Expression give errors when executing rdlc file
Mar 30, 2012 09:23 AM|LINK
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=4.0.0.0, 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.
Alex