Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Request for the permission of type 'System.Security.Permissions.SecurityPermission Failed- Dynamics 365 Unified Interface Online

(0) ShareShare
ReportReport
Posted on by 135

Hello,

I am getting the below error message when I try to call the external API from D365 Online Custom workflow activity. 

System.Security.SecurityException
HResult=0x8013150A
Message=Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

throwing this error at yellow marked line.

pastedimage1617661757682v1.png

Any help or suggestions will highly be appreciated

Thanks

Srikanth

  • Community Member Profile Picture
    on at
    RE: Request for the permission of type 'System.Security.Permissions.SecurityPermission Failed- Dynamics 365 Unified Interface Online

    Hi Srikanth,

    As following link said, you can refer it:

    And if you've got CRM Online, then the normal solution is to offload the processing to an environment that you have more control over. The most common option is to offload the processing to Azure, using the  Azure Service Bus or Azure Event Hub. The alternative, new to CRM 9, is to send the data to a  WebHook, which can be hosted wherever you like.

    David Jennaway - Microsoft Dynamics CRM: Plugins in the sandbox, and why you don't get System.Security.Permissions.SecurityPermission (mscrmuk.blogspot.com)

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

     

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

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

Leaderboard >

Product updates

Dynamics 365 release plans