Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Plug In development

Posted on by Microsoft Employee

Hi everyone.
I try to execute plug-in in dynamic CRM using Action and for achive to this I using WebResource and SOAP (XMLHttpRequest). But I getting below error 

Response Text: <s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="en-US">Unexpected exception from plug-in (Execute): TransferDatePlugin.DataTransferPlugin: System.Security.SecurityException: That assembly does not allow partially trusted callers.</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance"><ActivityId>60eb1387-7c04-4bc5-9122-808d696e6809</ActivityId><ErrorCode>-2147220956</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/><Message>Unexpected exception from plug-in (Execute): TransferDatePlugin.DataTransferPlugin: System.Security.SecurityException: That assembly does not allow partially trusted callers.</Message><Timestamp>2018-07-11T11:30:30.49057Z</Timestamp><ExceptionSource>PluginExecution</ExceptionSource><InnerFault i:nil="true"/><OriginalException>System.Security.SecurityException&#xD;
at TransferDatePlugin.DataTransferPlugin.Execute(IServiceProvider serviceProvider)&#xD;
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.&lt;&gt;c__DisplayClass5.&lt;Execute&gt;b__0()&#xD;
--- End of stack trace from previous location where exception was thrown ---&#xD;
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()&#xD;
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext)&#xD;
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext)&#xD;
at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter&amp; workerCounter, Boolean returnTraceInfo)</OriginalException><TraceText>&#xD;
[TransferDatePlugin: TransferDatePlugin.DataTransferPlugin]&#xD;
[394e9e20-f984-e811-80e1-000d3aa0b458: TransferDatePlugin.DataTransferPlugin: new_TransferFFData of any Entity]&#xD;
&#xD;
</TraceText></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>


How can I solve this issue?

 

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Plug In development

    Hi,

    The error message stated " That assembly does not allow partially trusted callers.". You can take a look below suggestion.

    community.dynamics.com/.../151656

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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