Skip to main content

Notifications

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

  • Pawan Nilank Profile Picture
    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
    6,211 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
    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
    6,211 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
    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans