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 :
Microsoft Dynamics CRM (Archived)

Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

(0) ShareShare
ReportReport
Posted on by 6,211

Hi All,

I am getting below error, i have create workflow activity and i have registered it but when it execute it, it is giving error

Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Thanks,
Shahbaaz

*This post is locked for comments

I have the same question (0)
  • Michel van den Brink Profile Picture
    4,697 on at

    Hello,

    Can you share the part of the source code where this exception occurs?

    It looks like it's a trust issue with an assembly you are trying to reference.

  • Shahbaaz Ansari Profile Picture
    6,211 on at

    thanks Michel,

    I dont have the code, i just have dll file that i have updated, and while calling that workflow activity i am getting above error. i check many article on community it says register dll on isolation mode :NONE, i tried it but no luck

  • Michel van den Brink Profile Picture
    4,697 on at

    Hello Shahbaaz,

    In Dynamics 365 Online everything runs in Isolation Mode (sandbox)

    There are a lot of assemblies, both third-party and Microsoft owned that are not on the whitelist (trusted) for running in Dynamics 365

     

    For more about this:

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/plugin-isolation-trusts-statistics

       

    Without the source code it's difficult to pinpoint the exact issue. Do you have a stack trace perhaps?

  • Shahbaaz Ansari Profile Picture
    6,211 on at

    Hi Michel,

    I resolved it by updating the newton soft json dll.

    Thanks for your help.

    Shahbaaz

  • Pawan Nilank Profile Picture
    30 on at

    Hi Shahbaaz,

    What have you done with newton json .dll ? I'm also getting similar error from a registered plugin. Please share the solution.

    Regards,

    Pawan

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans