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

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.

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. 
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.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 3080697 - Last Review: 07/17/2015 22:43:00 - Revision: 1.1

Microsoft Dynamics CRM 2011, Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM 2013 Service Pack 1, Microsoft Dynamics CRM 2015

  • KB3080697