CAS policy problem

Posted by: werne_si on 14 September 2017, 6:49 pm EST

  • 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]

  • Posted 14 September 2017, 6:49 pm EST

    [activereports_archive]Hello,

    You are requested to please try using the latest build of AR8 and see if you still face the same issue :

    http://www.componentone.com/Downloads/Download/?productID=507&amp;

    Moreover, the version mentioned by you seems to be incorrect, please confirm the same and mention the exact version of the build taht you are working with.

    Regards,

    Mohita[/activereports_archive]

  • Posted 14 September 2017, 6:49 pm EST

    [activereports_archive]Hi

    I have the same problem. I am using Active Report 8.0.133.0, the provided link is for active reports 9.

    I do not want to user active reports 9, is there is any Activereport 8 update to fix this issue.

    Also in My Licenses page, there is no update available to download, although I have ActiveReports 8 Professional Edition license.

    thanks[/activereports_archive]

  • Posted 14 September 2017, 6:49 pm EST

    [activereports_archive]Haseeb,

    Apologies for the inconvenience caused. Please download the latest service pack of ActiveReports 8 from the following link:

    http://arhelp.grapecity.com/groups/topic/activereports-8-public-release-builds/

    You will get all the download links for ActiveReports 8 builds here. You should download the SP2 release which is the latest one.

    Regards,

    Sankalp

    [/activereports_archive]

  • Posted 16 March 2018, 10:50 am EST

    Hi,

    Was this issue fixed in some (which) Active Reports builds?

    I am using 9.2.3032.0 version and I am having the same problem i.e. when I use activeReport.EnableScriptDebugging = true then on activeReport.Run() I get the very same “This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework” exception.

    Thank you.

  • Posted 23 March 2018, 9:14 am EST

    Hi,

    Can you please answer this question?

    Thank you.

  • Posted 3 April 2018, 3:00 am EST

    Hi,

    Is anybody from support reviewing this formum?

    Thank you.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels