Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Plugin Error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0

Posted on by 306

Hi Experts,

I am trying to run a SharePoint Integration Plugin whose purpose is to create folders in SharePoint when an account record is created, but facing issues.

Any help will be Appreciated.

Thanks & Regards,

Aman Anvaria

*This post is locked for comments

  • Aman Anvaria Profile Picture
    Aman Anvaria 306 on at
    RE: Plugin Error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0

    Thanks Rawish,

    I will look into this.

  • Aman Anvaria Profile Picture
    Aman Anvaria 306 on at
    RE: Plugin Error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0

    Thanks for your help, David

    Yes, plugin is running in Sandbox and i am using CRM Online.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Plugin Error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0

    The underlying cause is almost certainly that your plugin is running in the sandbox. The sandbox does not allow making authenticated calls to external web services (which I expect is how you're trying to connect to SharePoint).

    If you have CRM OnPremise, then you can deploy the plugin outside the sandbox, whereas if you have CRM Online you'll need to move the processing into Azure (or elsewhere using a Web Hook) - see https://mscrmuk.blogspot.co.uk/2018/04/plugins-in-sandbox-and-why-you-dont-get.html for a bit more information

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Plugin Error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0

    Hi Aman,

    Hope this will give you a context of this as to why this is happening and next steps.

    community.dynamics.com/.../185832  

  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Plugin Error: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0

    Hi Aman,

    Can you please share the code so that issue can be identified.

    Thanks

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans