I am trying to write to an IBM MQSeries host using
public void WriteMessage(string message) { queueMessage = new MQMessage(); queueMessage.WriteString(message); queueMessage.Format = MQC.MQFMT_STRING; queuePutMessageOptions = new MQPutMessageOptions(); queue.Put(queueMessage, queuePutMessageOptions); }
My errorcatch gives me an error:
Application error
This, of course, does not show. So I checked the event log on the server and this showed me an error:
An error occurred while retrieving data from stx041774 (192.168.225.51) TCP / IP. This may be due to communication failure.
The return code from the TCP/IP (recv) call was 10054 (X'2746').
Record these values ββand inform your system administrator.
I looked at 10054 and said:
An existing connection was forcibly closed by the remote host.
Does anyone know what I can do to make this work? Perhaps there is an MQC option that I should set for recording? Since I have no idea what to do with the parameters, I'm not even sure if this is a problem.
source share