Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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. 

↑ Back to the top


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  


↑ Back to the top


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.

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 3080697
Revision : 1
Created on : 1/7/2017
Published on : 7/17/2015
Exists online : False
Views : 310