Forum Discussion
Visual Studio SSDT System.Security.Permissions.SecurityPermission
There is typically a setting to allow certain types of permission for the app domain the expression is running in. This might help: https://stackoverflow.com/questions/32428/how-do-i-resolve-a-system-security-securityexception-with-custom-code-in-ssrs
- sevenhills5 years agoSuper User
Hi Bradsy,
I read the link before posting and I dont have any custom extensions. Inside the report, using ABS, Floor in an expression, in a textbox.
I am having error only my laptop (and not on the server). Even on my laptop, if use the reportbuilder, it wont give any exception i.e., it works fine. On the PBIRS server, it works fine.
Version info: Microsoft Visual Studio Professional 2019 Version 16.7.3 SQL Server Data Tools 16.0.62008.03130 SQL Server Reporting Services 15.0.19124.0 Microsoft SQL Server Reporting Services Designers Version 15.0.19124.0
I am localadmin in case this matters.
Also, on a side topic, if it is asp.net site, we can add references, this is Visual Studio, Reporting Services (SSDT) project ...
Thanks
- bradsy5 years agoMicrosoft Employee
Can you post an example of the expression I can run on local data to see if this is systemic or just your instance?
- sevenhills5 years agoSuper User
=Floor(Abs(SUM(DateDiff("d",Fields!OUT_DT.Value,Fields!EASE_DT.Value),"DS_SA")) /Sum(Fields!S_CNT.Value, "DS_OUTCOME"))a) OUT_DT, EASE_DT are datetime
b) S_CNT is int and has 1 or 0
c) Getting the diff between OUT_DT, EASE_DT as positive integers i.e., ABS and then sum.
d) sum of count
Overall, similar to LOS type calculation ...
Thank you Bradsy for looking into it.