Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Plugin error in sandbox

Posted on by 95

our CRM have  a frontend server and a backend server. we developed a plugin.

If the isolation mode is none it works well. if the isolation mode is Sandbox it display error as below: (copied from plugin trace log)

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: OrganizationServiceFaultDetail: <OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../ErrorCode><ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../d2p1:key><d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">0</d2p1:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><d2p1:key>SubErrorCode</d2p1:key><d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">-2146233088</d2p1:value></KeyValuePairOfstringanyType></ErrorDetails><Message>OrganizationServiceFault</Message><Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource>SdkClientCommunication</ExceptionSource><InnerFault><ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId><ErrorCode>-2147204345</ErrorCode><ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" /><Message>System.ServiceModel.Security.SecurityNegotiationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9BDB3DA0</Message><Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource>SdkClientCommunication</ExceptionSource><InnerFault><ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId><ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:d4p1="">schemas.datacontract.org/.../System.Collections.Generic" /><Message>System.Security.Authentication.AuthenticationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE4C8F34</Message><Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true" /><InnerFault><ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId><ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:d5p1="">schemas.datacontract.org/.../System.Collections.Generic" /><Message>System.ComponentModel.Win32Exception: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #1410E46D</Message><Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true" /><InnerFault i:nil="true" /><OriginalException i:nil="true" /><TraceText i:nil="true" /></InnerFault><OriginalException i:nil="true" /><TraceText i:nil="true" /></InnerFault>
<OriginalException>System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---&gt; System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---&gt; System.ComponentModel.Win32Exception: The target principal name is incorrect
--- End of inner exception stack trace ---
at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)
--- End of inner exception stack trace
--- Server stack trace:at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection&amp; connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper&amp; timeoutHelper)at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper&amp; timeoutHelper)at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper&amp; timeoutHelper)at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) Exception rethrown at [0]:at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)at System.ServiceModel.ICommunicationObject.Open()at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj)</OriginalException><TraceText i:nil="true" /></InnerFault><OriginalException>System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---&gt; System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---&gt; System.ComponentModel.Win32Exception: The target principal name is incorrect --- End of inner exception stack trace --- at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity) --- End of inner exception stack trace --- Server stack trace:at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection&amp; connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper&amp; timeoutHelper)at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper&amp; timeoutHelper)at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper&amp; timeoutHelper)at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) Exception rethrown at [0]:at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)at System.ServiceModel.ICommunicationObject.Open()at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj)</OriginalException><TraceText> Entered InsertLogicPlugin.Execute(), Correlation Id: 339826c4-ba48-4cf2-aa47-a75214e129a0, Initiating User: 414b12f1-7edb-e711-80f4-00505681424d Exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.ServiceModel.Security.SecurityNegotiationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9BDB3DA0 (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault)., Correlation Id: 339826c4-ba48-4cf2-aa47-a75214e129a0, Initiating User: 414b12f1-7edb-e711-80f4-00505681424d Exiting InsertLogicPlugin.Execute(), Correlation Id: 339826c4-ba48-4cf2-aa47-a75214e129a0, Initiating User: 414b12f1-7edb-e711-80f4-00505681424d </TraceText> </OrganizationServiceFault> Server stack trace:at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)at Microsoft.Crm.Sandbox.ISandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)at Microsoft.Crm.Sandbox.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: OrganizationServiceFaultDetail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
 <ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId>
 <ErrorCode>-2147220891</ErrorCode>
 <ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic">
 <KeyValuePairOfstringanyType>
 <d2p1:key>OperationStatus</d2p1:key>
 <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">0</d2p1:value>
 </KeyValuePairOfstringanyType>
 <KeyValuePairOfstringanyType>
 <d2p1:key>SubErrorCode</d2p1:key>
 <d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:int">-2146233088</d2p1:value>
 </KeyValuePairOfstringanyType>
 </ErrorDetails>
 <Message>OrganizationServiceFault</Message>
 <Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp>
 <ExceptionRetriable>false</ExceptionRetriable>
 <ExceptionSource>SdkClientCommunication</ExceptionSource>
 <InnerFault>
 <ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId>
 <ErrorCode>-2147204345</ErrorCode>
 <ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
 <Message>System.ServiceModel.Security.SecurityNegotiationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9BDB3DA0</Message>
 <Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp>
 <ExceptionRetriable>false</ExceptionRetriable>
 <ExceptionSource>SdkClientCommunication</ExceptionSource>
 <InnerFault>
 <ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId>
 <ErrorCode>-2147220970</ErrorCode>
 <ErrorDetails xmlns:d4p1="">schemas.datacontract.org/.../System.Collections.Generic" />
 <Message>System.Security.Authentication.AuthenticationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE4C8F34</Message>
 <Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp>
 <ExceptionRetriable>false</ExceptionRetriable>
 <ExceptionSource i:nil="true" />
 <InnerFault>
 <ActivityId>0d7f7027-7972-42f7-89eb-663b0db64997</ActivityId>
 <ErrorCode>-2147220970</ErrorCode>
 <ErrorDetails xmlns:d5p1="">schemas.datacontract.org/.../System.Collections.Generic" />
 <Message>System.ComponentModel.Win32Exception: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #1410E46D</Message>
 <Timestamp>2020-03-16T16:56:20.9899243Z</Timestamp>
 <ExceptionRetriable>false</ExceptionRetriable>
 <ExceptionSource i:nil="true" />
 <InnerFault i:nil="true" />
 <OriginalException i:nil="true" />
 <TraceText i:nil="true" />
 </InnerFault>
 <OriginalException i:nil="true" />
 <TraceText i:nil="true" />
 </InnerFault>
 <OriginalException>System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---&gt; System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---&gt; System.ComponentModel.Win32Exception: The target principal name is incorrect
 --- End of inner exception stack trace ---
 at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
 at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
 at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
 at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
 at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
 at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
 at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)
 --- End of inner exception stack trace ---
Server stack trace:
 at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)
 at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)
 at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection&amp; connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper&amp; timeoutHelper)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper&amp; timeoutHelper)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper&amp; timeoutHelper)
 at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
Exception rethrown at [0]:
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
 at System.ServiceModel.ICommunicationObject.Open()
 at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()
 at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()
 at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj)</OriginalException>
 <TraceText i:nil="true" />
 </InnerFault>
 <OriginalException>System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---&gt; System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---&gt; System.ComponentModel.Win32Exception: The target principal name is incorrect
 --- End of inner exception stack trace ---
 at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)
 at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
 at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
 at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)
 at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)
 at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)
 at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)
 --- End of inner exception stack trace ---
Server stack trace:
 at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty&amp; remoteSecurity)
 at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)
 at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection&amp; connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper&amp; timeoutHelper)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper&amp; timeoutHelper)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper&amp; timeoutHelper)
 at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
 at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
 at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
Exception rethrown at [0]:
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
 at System.ServiceModel.ICommunicationObject.Open()
 at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()
 at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()
 at Microsoft.Crm.Sandbox.SandboxOrganizationService.Execute(String operation, Byte[] serializedRequest, Object sandboxTraceSettingsObj)</OriginalException>
 <TraceText>
Entered InsertLogicPlugin.Execute(), Correlation Id: 339826c4-ba48-4cf2-aa47-a75214e129a0, Initiating User: 414b12f1-7edb-e711-80f4-00505681424d
Exception: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: System.ServiceModel.Security.SecurityNegotiationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #9BDB3DA0 (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault)., Correlation Id: 339826c4-ba48-4cf2-aa47-a75214e129a0, Initiating User: 414b12f1-7edb-e711-80f4-00505681424d
Exiting InsertLogicPlugin.Execute(), Correlation Id: 339826c4-ba48-4cf2-aa47-a75214e129a0, Initiating User: 414b12f1-7edb-e711-80f4-00505681424d
</TraceText>
</OrganizationServiceFault>
Server stack trace:
 at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
 at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
 at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
 at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
 at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
 at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
 at Microsoft.Crm.Sandbox.ISandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)
 at Microsoft.Crm.Sandbox.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)
 at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Plugin error in sandbox

    To add to the previous post, it looks like the problem is that you're trying to make an authenticated call to an external web service. This requires use of some of the security classes, and these are blocked in the sandbox. The simplest solution is not to run the plugin in the sandbox; otherwise you may need to devise an alternate authentication process for the web service call

  • Suggested answer
    kunihih Profile Picture
    kunihih on at
    RE: Plugin error in sandbox

    Is there a reason why you need to register the plugin in the sandbox? As stated on the page below access to various resources/functions are restricted in the sandbox and this error can be a result of this restriction.

    docs.microsoft.com/.../gg334752(v=crm.8)

    If sandbox isolation is a requirement I believe you will have to perform a full code review of the plugin to make sure you are not trying to perform any of the actions that are restricted in sandbox isolation.

  • Suggested answer
    Marco.P Profile Picture
    Marco.P 2,405 on at
    RE: Plugin error in sandbox

    Hi,

    It seems like a SPN issue. The App Pool service account SPN is not configured properly.

    docs.microsoft.com/.../hh699825(v=crm.8)

    The service account may need an SPN for the URL used to access the website that is associated with it. To set the SPN for the Sandbox Processing Service account, run the following command at a command prompt on the computer where the service is running.

    SETSPN –a MSCRMSandboxService/<ComputerName> <service account>

    If you're not confident about this stuff you should check in with your System DB administrator.

    Hope it helps,

    Marco


    If you found the answer helpful for you or other readers, please mark as Verified.

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