Skip to main content

Notifications

Service | Customer Service, Contact Center, Fie...
Unanswered

Dynamic operations can only be performed in homogenous appdomain c#

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.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Dynamic operations can only be performed in homogenous appdomain c#

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans