web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Dynamic operations can only be performed in homogenous appdomain c#

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I am getting an error "dynamic operations can only be performed in homogenous appdomain" when execute the code from untrusted party. We set the below line in config,

<NetFx40_LegacySecurityPolicy enabled="false" />.

if we change the above setting, what are the implications will happen?

Kindly help on this.

I have the same question (0)
  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    What's the application are you using?

    I googled the issue and you could try to set the value to "true" in "legacy security policy".

    Here's a document for this element.

    docs.microsoft.com/.../netfx40-legacysecuritypolicy-element

    Seems only when you using .NET Framework 3.5 in .NET Frame 4.0 workaround, this issue will be caused.

    pastedimage1588043557999v1.png

    Best Regards,

    Leo

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Jimmy Passeti Profile Picture

Jimmy Passeti 37 Most Valuable Professional

#2
11manish Profile Picture

11manish 33

#3
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 32

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans