Posted 14 September 2017, 6:49 pm EST
[activereports_archive]I have a rather simple WPF tool ( .NET 4.0 ), that simply has 2 buttons.
One button to choose a input data file and the other one to render a PageReport ( CPL ) based on the chosen input data file and a rdlx file that is encolsed in the tools resources. The report is exported as PDF file.
I am using ActiveReports 8.1.0.1069
Everything works fine on my local Win7 machine.
But I have to “publish” the tool on a network drive for others to use. If someone tries to execute the tool from the network drive they get the following error message:
“This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework.
In order to enable CAS policy for compatibility reasons, please use the NetFx40_LegacySecurityPolicy configuration switch.
Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information.”
I have seen a hint to this problem in the “Touble Shooting” section of AR8 documentation, but the suggested solution to add the following to app.config
<configuration>
<runtime>
<NetFx40_LegacySecurityPolicy enabled=“true”/>
</runtime>
</configuration>
did not solve the problem. It gets even worse! If I place an app.config as shown above next to my tool on the network drive, the executable will crash on startup!
Any suggestions on how to solve the problem?[/activereports_archive]