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.

Error message when you submit an order or create an account in Microsoft Dynamics CRM 3.0: "The underlying connection was closed: An unexpected error occurred on a receive"


View products that this article applies to.

Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/ ) Description of the Microsoft Windows registry

↑ Back to the top


Symptoms

When you submit an order or create an account in Microsoft Dynamics CRM 3.0, you receive the following error message:
The underlying connection was closed: An unexpected error occurred on a receive.
This error message occurs when you are using the Microsoft Dynamics CRM Connector for Microsoft Dynamics GP. This problem occurs intermittently.

Note The order or account may be created in Microsoft Dynamics GP after you receive the error message.

↑ Back to the top


Cause

You may see this problem after the Microsoft Dynamics CRM or Microsoft Dynamics GP servers have been idle for a long time. When the servers are no longer idle, you can submit an order or create an account without receiving this error message.

↑ Back to the top


Resolution

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To resolve this problem, increase the number of TCP ports that are available. Then, reduce the length of time that these TCP ports must wait before they can be re-used. To do this, modify the MaxUserPort registry setting and the TcpTimedWaitDelay registry setting as follows:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  3. Right-click MaxUserPort, and then click Modify.
  4. In the Value data box, enter 65534, and then click OK.
  5. Right-click TcpTimedWaitDelay, and then click Modify.
  6. In the Value data box, enter 30, and then click OK.
Notes
  • Modify these registry settings on the Microsoft CRM Server, on the Microsoft CRM Connector for Great Plains server, and on the Microsoft SQL Server that are used together with the Microsoft CRM Connector for Great Plains.
  • You must restart the computer after you modify the registry.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB914264, kbbug, kbmbsmigrate, kberrmsg, kbtshoot, kbmbscrm40no

↑ Back to the top

Article Info
Article ID : 914264
Revision : 4
Created on : 8/21/2007
Published on : 8/21/2007
Exists online : False
Views : 408