Unable to connect to the remote server error generated by a custom plugin in Microsoft Dynamics CRM

Symptom

Consider the following scenario; A custom plugin is deployed in a Microsoft Dynamics CRM environment that executes a SOAP action to connect to an external address or service. The plugin may encounter one of the following error messages if a network proxy is required for external communication:


Unable to connect to the remote server

Error: There was no endpoint listening at <Custom Service Address> that could not accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

Cause

The Microsoft Dynamics CRM application server is sitting behind a network proxy and the plugin is configured to run in Isolation Mode (Sandbox). In this scenario, the service account running the Microsoft Dynamics CRM Sandbox Service did not have access through the network proxy. 

Resolution

Use the following steps to configure the Microsoft Dynamics CRM Sandbox Service Account to utilize the network proxy:

1. Log into the Microsoft Dynamics CRM Application Server using the Microsoft Dynamics CRM Sandbox Service Account  


2. Open Internet Explorer


3. Navigate to Tools > Internet Options > Connections > LAN Settings

4. Update either the 'Use Automatic Configuration Script' or 'Proxy Server' sections per the local environment configuration  


More Information

As the plugin executes in Isolation Mode, the call to external address or service is made by the Microsoft Dynamics CRM Sandbox Service account. This account must be able to access the external service from the Microsoft Dynamics CRM server that hosts the Microsoft Dynamics CRM Sandbox Service.

Properties

Article ID: 3080697 - Last Review: Jul 17, 2015 - Revision: 1

Feedback