Skip to main content

Notifications

Announcements

No record found.

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.

Posted on by 6,203

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

  • Pawan Nilank Profile Picture
    Pawan Nilank 30 on at
    RE: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    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

  • Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    Hi Michel,

    I resolved it by updating the newton soft json dll.

    Thanks for your help.

    Shahbaaz

  • Michel van den Brink Profile Picture
    Michel van den Brink 4,697 on at
    RE: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    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
    Shahbaaz Ansari 6,203 on at
    RE: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    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
    Michel van den Brink 4,697 on at
    RE: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    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.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans