Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Sanbox Host not running

Posted on by Microsoft Employee

Hello. I just wanted to check if anyone has the same trouble as we are now experiencing, as it looks like some Microsoft server died maybe?

With Dynamics 365 Online we are recieving this error:

<Message>The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE10A31E</Message>
<Timestamp>2018-01-04T15:36:54.190799Z</Timestamp>

From what I've found this has something to do with sandbox service not running, which everyone else on the internet solved for on-premise CRM, but now we're talking online, so I can not go into services.msc and check whether the service is running.

This is the error I get when trying to create entity:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE10A31EDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>ffff0fe3-f058-4bc8-9859-ced3816b3953</ActivityId>
<ErrorCode>-2147204722</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE10A31E</Message>
<Timestamp>2018-01-04T15:36:54.190799Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[EmailKampane.EmailKampanePlugins: EmailKampane.CRM.Plugins.PostCampaignActivityCreate]
[21920b30-5b94-e611-80ea-5065f38aea31: EmailKampane.CRM.Plugins.PostCampaignActivityCreate]


</TraceText>
</OrganizationServiceFault>

This is the plugin trace log from CRM:

Unhandled Exception: System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://redacted/CrmSandboxHost. The connection attempt lasted for a time span of 00:00:21.0314476. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 21.4.91.81:808. 

Server stack trace: 
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
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& 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.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)
at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
Inner Exception: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 21.4.91.81:808
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)

*This post is locked for comments

  • ToniG Profile Picture
    ToniG 321 on at
    RE: Sanbox Host not running

    Yes this is a known issue. Microsoft is working on it now. If you look, there is a service advisory with more info.

    2018_2D00_01_2D00_04_5F00_8_2D00_45_2D00_38.jpg

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sanbox Host not running

    P.s.3: Little bit different exception log from next try, I'd like to point at this line "Microsoft.Crm.Sandbox.CrmExceptions.CrmSandboxStartStopException: The Sandbox Host has not completed initialization":

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The Sandbox Host has not completed initializationDetail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

    <ActivityId>a8a2a688-5693-4bb8-ade1-d819d76ea180</ActivityId>

    <ErrorCode>-2147204722</ErrorCode>

    <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

    <Message>The Sandbox Host has not completed initialization</Message>

    <Timestamp>2018-01-04T16:02:22.9725026Z</Timestamp>

    <ExceptionRetriable>true</ExceptionRetriable>

    <ExceptionSource>HostStartStop</ExceptionSource>

    <InnerFault i:nil="true" />

    <OriginalException>Microsoft.Crm.Sandbox.CrmExceptions.CrmSandboxStartStopException: The Sandbox Host has not completed initialization

    at Microsoft.Crm.Sandbox.SandboxHost.ValidateInputs(SandboxCallInfo callInfo, IExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String assemblyContents, SandboxTracker tracker)

    at Microsoft.Crm.Sandbox.SandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)</OriginalException>

    <TraceText i:nil="true" />

    </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.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)

    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)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sanbox Host not running

    P.s.: I do not post any file with creation of the entity.

    P.s. 2: The plugin was tested and this is error from production environment after several months of usage.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans