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.
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
Marked as answer by webjagger on Apr 02, 2012 07:55 AM
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
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: Expression give errors when executing rdlc file
Mar 30, 2012 09:25 AM|LINK
why the expression is:
Parameters!par01.Value & "xxx"
I think it should be like:
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
webjagger
Member
52 Points
40 Posts
Re: Expression give errors when executing rdlc file
Mar 30, 2012 09:28 AM|LINK
It's because I directly copied it from the xml-code.
In the editor it's displayed like you wrote.
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: Expression give errors when executing rdlc file
Mar 30, 2012 10:29 AM|LINK
below thread mentioned the problem you are facing and given a solution to problem like yours, please have a look:
http://stackoverflow.com/questions/4794968/reporting-services-localreport-and-wif
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
webjagger
Member
52 Points
40 Posts
Re: Expression give errors when executing rdlc file
Apr 02, 2012 07:57 AM|LINK
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!