Hi All
I have encountered a problem with CRM partially reporting errors with the sandbox service.
The system consists of the following servers:
crmweb3001 - Only frontend roles installed
crmapp3001 - All roles installed
crmsql3001 - SQL server
The system is running ADFS/IFD and everything seems to be working perfectly when using the UI and working through Outlook. The system uses split DNS so requests from the internet goes to the frontend server and requests from the intranet goes to the backend server. The setup is hosting multiple organisations.
The problem occures in a simple plugin i have developed. The plugin executes when a custom entity is updated and does a retrievemultiple on a related child entity to Count the number of related entities. The plugin is working perfectly in the Development setup with all roles on one server.
If i access the UI on the backend server, and update the entity, the plugin is executed perfectly.
If i access the UI on the frontend server, and update the entity, the plugin gives the following error:
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: #F037E259
Looking through the trace files this is the details i found
System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.tcp://crmapp3001/CrmSandboxHost that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
In the trace files i can also see the backend servers is preparing the endpoint a couple of lines earlyer:
net.tcp://kmdcrmapp3001/CrmSandboxHost
using clientSpn: MSCRMSandboxService/CRMAPP3001
created WCF channel OK
So it seems the server know to get ready for sandbox processing, but it only works if everything is running on the backend server.
I have verified that there is no firewall blocking connections between the 2 servers and name resolving is also working as expected.
Could this be a SPN configuration problem?
Any help is appreciated. Thanks
/Peter