BizTalk - The underlying connection was closed: An unexpected error occurred on

Asked By Ronny Drechsler on 15-May-12 07:33 AM
Earn up to 40 extra points for answering this tough question.
Hi

I have an application which uses an Static Solicit-Response send port (HTTPS) to SEND an EDI message and Receive an synchronous MDN.
Messages will be sent as signed and encrypted.
But after I sent out the message I got every time the follwoing error:

"A message sent to adapter "HTTP" on send port "RSA.SRP_HTTP" with URI "https://xxx.xxx/receive" is suspended. 
Error details: The underlying connection was closed: An unexpected error occurred on a send. 
MessageId:  {0A2DE228-29DB-4691-8A95-859978A55D72}
InstanceID: {02528994-E657-4E80-8135-40CF5E40380E}"

What I have already done:

- check thumbprint on Send Port as mentioned at http://jason.agostoni.net/2010/10/07/biztalk-2009-https-connection-closed-issue/ 
- uncheck the recycling option on the AppPool in IIS as mentioned in http://rohitbiztalk.blogspot.de/ 
- change user and hostinstance for send port to check if the certificates are correct (all seems to be fine)
- check if all check boxes are unchecked in the agreement settings under section "HTTP Settings for MDNs" in the AS2 agreement

Any other ideas?

Thanks a lot!

Ronny
Ronny Drechsler replied to Jitendra Faye on 15-May-12 09:27 AM
Hi Vickey

Didn't you read my post completely?
I already did it on the 2nd step under "What I have already done:"

...
:(
[)ia6l0 iii replied to Ronny Drechsler on 15-May-12 09:52 PM
What does the inner exception have to say? Or is there one at all?

Do you own the remote system to which you are trying to send data? 

I believe it is something to do with the security protocol that these two communicate with.
Somesh Yadav replied to Ronny Drechsler on 16-May-12 01:00 AM
Open the Internet Information Services (IIS) Manager go to Application Pool  and open the properties of the required application pool. Uncheck the "Recycle worker processes (in minutes):" check box.
Somesh Yadav replied to Ronny Drechsler on 16-May-12 01:02 AM

If you are using msdeploy.exe command line, could you please post the command line you are using? The URL is still not correct for connecting to either the agent or handler service - this is usually fixed by altering the computername value. You would want something like the below, but if you post the command line I may be able to tell you how to modify it:

(for non-admin using handler service if you have configured delegation) msdeploy.exe -verb:sync -source:iisapp="MySite" -dest:iisapp="MyRemoteSite",computername="https://myServer:8172/msdeploy.axd?site=MyRemoteSite",username=MyUser,password=MyPassword,authType=basic -allowuntrusted

(for admin using agent service) msdeploy.exe -verb:sync -source:iisapp="MySite" -dest:iisapp="MyRemoteSite",computername=myServer, username=AdminUser,password=AdminPassword

If you are using Visual Studio publishing, in the Publish Web dialog where you enter Service URL be sure to use either "servername" only to use handler service or "http://servername" to use the agent.

If you are using the handler (if you want to publish as a non-admin) make sure you are able to connect first using an inetmgr remote connection.

RAJASEKHAR RAJENDRAN replied to Ronny Drechsler on 18-May-12 07:23 AM
Hi Ronny,

I hope the Issue is with your Firewall.

Disable the Firewall and try the same..

you can also try using the http port(8000) instead of https.

that is instead of URI  "https://xxx.xxx/receive" use  "http://xxx.xxx/receive" 


Thanks & Regards,
Rajasekhar.R
http://rajasekharcbe-biztalk.blogspot.in/ 

Ronny Drechsler replied to RAJASEKHAR RAJENDRAN on 18-May-12 07:27 AM
Hi Rajasekhar,

unfortunately not. As I can only use https (http over 443).
But I probably have found an issue.
I will all let you know once I can confirm that I have found it.

BR
RAJASEKHAR RAJENDRAN replied to Ronny Drechsler on 21-May-12 01:51 AM
Ronny,

Have you tried by stopping the Window-Firewall service and tried ?

Thanks & Regards,
Rajasekhar.R
Ronny Drechsler replied to RAJASEKHAR RAJENDRAN on 21-May-12 09:33 AM
Hi

We don't use a windows firewall.
After some comparisions of TCPDump files on Test and Production system we have recognize different outgoing SSL version (SSL3.0 and TLS1 (which is SSL3.1))
That might be the problem...

I will tell you in the evening...

Best regards
help
a SQL DB. The basic message flow is: Receive Location (SQL) -> Send Port [Receive] (Dynamic Solicit- Response) -> Send Port [Send] (Dynamic Solicit-Response) -> Send Port (SQL) The message has a promoted property named = 91DestinationServerName = 92 which is with context-based routing, maps and filters applied in the ports. If I use a static solicit-response SOAP send port, the message flows all the way through successfully. The message is method exists in the proxy. Here is the Execute method of my component: public Microsoft.BizTalk.Message.Interop.IBaseMessage Execute (Microsoft.BizTalk.Component.Interop.IPipelineContext pc, Microsoft.BizTalk.Message.Interop.IBaseMessage inMsg) { string destinationServer = 3D Convert.ToString (inMsg.Context.Read("DestinationServerName", "https: / / Clarity.ARS.XCS.BizTalk.Schemas.PropertySchema")); string transportType = 3D "SOAP"; inMsg.Context.Promote("OutboundTransportType", "http: / / schemas.microsoft.com / BizTalk
this request with multiple received response. let's assume the backend send ports are all solicit-response, the correlation context property gets lost during the send-receive. My question is: Is it possible to get the context from the request while receiving the response through solicit-response send port, in another word, can a solicit-response send port carry the context from request to response? I know I could use monster. I have never come across a senario like this, any thoughts will be appreciated. BizTalk Discussions BizTalk (1) Database (1) EpmCorrelationToken (1) Itinerary (1) LindaBztk (1) Persistency (1) Increments (1) Dispatches (1 s passed directly as a parameter to the Start Orchestration (along with your message) and BizTalk takes care of the rest. It's actually pretty cool and I wouldn't be too concerned about the extra orchestrations, BizTalk scales well and you can throttle it if need be. So how were you thinking you can create a custom pipeline component to save the context into a database or static hash table in the request and insert it back to the message at the response
use a System.String data type or do I need to do something more? Mark. BizTalk Discussions SharePoint (1) Response (1) WSS (1) WebService (1) TCPTRACE (1) RE (1) NACK (1 all attributes and characteristics of the normal port . To answer your question, in your approach: Solicit-Response send port won't produce any messages automatically, it's upto you to decide has been written. In my case I am using the WSS Adapter that comes with Biztalk 2006 and I'm trying to work out what response it gives. - - Regards, Saravana Kumar console, which will show you the response message. May be its worth investigating using a static solict-response send port first, and then switch to dynamic ports, just to simplify your a WSS Document Library and get a response from the adapter and received this message: solicit-response protocol. " So it's one way only. Mark. If that's the case, is there any possibility of using static solicit-response port instead of dynamic port, then you can hopefully take advantage of - - Regards, Saravana the response as "Answer" if it solves your problem.] I'm sure that using the static port would work, but the solution I have developed has to use the dynamic port
Service1"; WSRequest(SOAP.UseSoap12) = true; WSRequest(SOAP.UseSSO) = false; / / [WSRequest is Message , WSPort = Dynamic Send Solicit Response Port] it's error information : 1) "The remote server returned an error: (500) Internal Server Error." in Messaging Service Class(in BizTalk Admin) 2) "Uncaught exception (see the 'inner exception' below) has suspended an instance of service remote server returned an error: (500) Internal Server Error. Exception type: XlangSoapException Source: Microsoft.XLANGs.BizTalk.Engine Target Site: Void VerifyTransport(Microsoft.XLANGs.Core.Envelope, Int32, Microsoft.XLANGs.Core.Context) The following is a stack trace" in Orchestration Service Class(in Biztalk Admin also) how should i do the right expression BizTalk Discussions BizTalk (1) WSRequest (1) SOAP (1) WebService (1) XLANGs (1) AuthenticationScheme (1) URL (1) XlangSoapException (1 can call a webservice only using HTTP and SOAP adapter (at least for now with BizTalk 2006 easily), creating a dynamic port will open up the possibility of transmitting the message HTTP adapter, but adding custom headers. One alternative I can think of is configure different static send ports (one per webservice URL, I'm assuming its manageable number), then decide which
Hi, I have recently created a Custom Http transmit adapter using the Biztalk Adapter wizard for C#. The adapter has three Config properties defined in it's TransmitLocation xsd file within the AdapterManagement project. When testing the adapter , If I create a static solicit response send port the adapter works fine. Alladapter Transmit Location properties can be accessed and set from within BizTalk Explorer etc. My problem is that I want to use this adapter with Dynamic Port process and found the solution. I have posted a walkthrough of how to modify the Biztalk Adapter Wizard's socket adapter sample at : http: / / www.geekswithblogs.net / sevans / archive / 2005 / 01 / 14 / 19985.aspx keywords: BizTalkPage, Dynamic Port Binding, BizTalk Explorer, Binding, Config description: Dynamic Port binding with Custom Biztalk Adapter Hi, I have recently created a Custom Http transmit adapter using the Biztalk Adapter
Hi, I have an issue on configuring MLLp adapter adapter port configured to receive ACKS requires that you to do the following things: • Enable Solicit / Response in the send port properties (Solicit-Response Configuration for Static One-Way Send Port). • Use the default receive location, TwoWayAckReceiveLocation, or set up a new for more detail- http: / / support.microsoft.com / kb / 952568 Hope this will help you. keywords: BizTalk, Enable, adapter configuration, server environment, load balancing, MLLP description: MLLP adapter in load balancing servers
when to use static constructor , static method, static class , Hi, Static classes and static members are used to create data and functions that can access without creating instance of
Static class contain only static members & static funcions? C# .NET 28-Oct-12 07:41 PM I want t o 1 Static class contain only static members & static funcions with static constructor only? 2 what is the reason that we cant create object of static class? 1) yes static class only contains static variables and functions. 2) Yes we don