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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans