Last post Apr 02, 2012 03:57 AM by webjagger
Mar 30, 2012 05:23 AM|webjagger|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.TextRuns’ contains an error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089'
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.
Mar 30, 2012 05:25 AM|Ashutosh Pathak|LINK
why the expression is:
Parameters!par01.Value & "xxx"
I think it should be like:
=Parameters!par01.Value & "xxx"
Mar 30, 2012 05:28 AM|webjagger|LINK
It's because I directly copied it from the xml-code.
In the editor it's displayed like you wrote.
Mar 30, 2012 06:29 AM|Ashutosh Pathak|LINK
below thread mentioned the problem you are facing and given a solution to problem like yours, please have a look:
Apr 02, 2012 03:57 AM|webjagger|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!