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 use the HTTP.NET SDK Sample Adapter to send messages in Microsoft BizTalk Server 2006 R2: "The adapter failed to transmit message going to send port "httpnet" with URL "http://<URL>""


View products that this article applies to.

Symptoms

In Microsoft BizTalk Server 2006 R2, you receive the following error message when you use the HTTP.NET SDK Sample Adapter to send messages under load:
The adapter failed to transmit message going to send port "httpnet" with URL "http://URL". It will be retransmitted after the retry interval specified for this Send Port. Details:"An unexpected failure occurred while processing a message. The text associated with the exception is "The request was aborted: The request was canceled.".".

↑ Back to the top


Cause

This issue occurs because of a problem in the ProcessMessage function in the HttpTransmitterEndpoint.cs file.

↑ Back to the top


Workaround

To resolve this issue, change the ProcessMessage function as follows. Then, recompile and redeploy the SDK sample

Original function
public override IBaseMessage ProcessMessage(IBaseMessage message)
        {

            this.solicitMsg = message;

            HttpAdapterProperties props = new HttpAdapterProperties(message, this.propertyNamespace);
            IBaseMessage responseMsg = null;

            if (props.IsTwoWay)
            {
                WebResponse response = SendHttpRequest(this.solicitMsg, props);
                responseMsg = BuildResponseMessage(response);
            }
            else
            {
                WebResponse response = SendHttpRequest(this.solicitMsg, props);
                response.Close();
            }

            return responseMsg;
        }
        }

New function

public override IBaseMessage ProcessMessage(IBaseMessage message)
        {

            HttpAdapterProperties props = new HttpAdapterProperties(message, this.propertyNamespace);
            IBaseMessage responseMsg = null;

            if (props.IsTwoWay)
            {
                WebResponse response = SendHttpRequest(message, props);
                responseMsg = BuildResponseMessage(response);
            }
            else
            {
                WebResponse response = SendHttpRequest(message, props);
                response.Close();
            }

            return responseMsg;
        }

↑ 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: KB972175, kbprb, kbexpertiseadvanced, kbtshoot, kbbug, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 972175
Revision : 1
Created on : 6/15/2009
Published on : 6/15/2009
Exists online : False
Views : 346