Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NetFx40_LegacySecurityPolicy enabled : Impact of Removing or disabling this

(0) ShareShare
ReportReport
Posted on by

Hi,
Is there any security risk when

NetFx40_LegacySecurityPolicy enabled="true

is removed or changed to false in Microsoft.Dynamics.Nav.Client.exe.config?
Is it safe in terms of performance and security etc.? What are the disadvantages associated with this change?

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: NetFx40_LegacySecurityPolicy enabled : Impact of Removing or disabling this

     We have added this property and set it to true to support memory usage and performance of reports. We are also aware about this being a problem with some external add-ins that depend on this policy to be set to false.
    Note though, a possible issue has been reported recently when using this setting with value false: Depending on value of this switch and .net framework version, string comparison might yield different results in specific circumstances.
    To be exact: Reserved Quantity field (table 32, ILE) might show incorrect value (0), due to string interpretation of flowfield condition (Source ID = '', Source Batch Name = ''). This issue is being addressed.

  • mmv Profile Picture
    11,467 on at
    RE: NetFx40_LegacySecurityPolicy enabled : Impact of Removing or disabling this

    Hi,

    This is what MS says:

    Applying the <NetFx40_LegacySecurityPolicy> element can result in significant performance penalties for native image assemblies created by the Native Image Generator (Ngen.exe) that are not installed in the global assembly cache. The performance degradation is caused by the inability of the runtime to load the assemblies as native images when the attribute is applied, resulting in their being loaded as just-in-time assemblies.

    Best Regards,

    MMV

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans