Hello,
I'm using the Microsoft POS library but I get this error when I call the constructor of a variable (PosExplorer):
"This method explicitly uses CAS policy, which has been obsoleted by the .NET Framework"
How can I solve this in NAV? I have been searching but I haven't find any solution which fits on NAV 2013. ](*,)
Thank you!
0
Answers
What I would recommend trying is to add the line <NetFx40_LegacySecurityPolicy enabled="true"/> to the exe.config file (Microsoft.Dynamics.Nav.Server.exe.config) usually found in the folder C:\Program Files\Microsoft Dynamics NAV\71\Service.
From your mail I cannot determine if it is a client side add-in that fails. If so then you need to modify the exe.config file for the client.
Not sure that this will work - but it is worth trying out.
Jens Møller-Pedersen [MSFT]
This posting is provided 'AS IS' with no warranties, and confers no rights.
I noticed that in both config files (client and server) of NAV 2013 R2 it comes activated by default . In previous versions that code line doesn't exists.
We do hope that we got it right in assuming that the chosen default would benefit the majority of partners.
However, it is likely that the legacy security policy will get discontinued in a later version of .Net - but I have not heard of any plans of that yet.
Jens Møller-Pedersen [MSFT]
This posting is provided 'AS IS' with no warranties, and confers no rights.