1

I am trying to connect to IBM MQ using AMQP 1.0 channel from my .Net Core application and I am receiving the below error:

    Address address = new Address("amqp://10.58.139.97:1234");
Connection connection = new Connection(address, SaslProfile.Anonymous, null, null);

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'TcpTransport'.
   at Amqp.Framing.Reader.ReadBuffer
JoshMc
  • 10,239
  • 2
  • 19
  • 38
Bhai
  • 13
  • 5
  • Which .NET AMQP library are you using? Because IBM MQ does not include an .NET AMQP library. Also, why not simply use the MQ .NET library? i.e. native MQ connectivity. – Roger Jun 20 '18 at 20:36
  • I am using AMQPNetLite.Core for .Net Core. IBM MQ does not support .Net core. – Bhai Jun 21 '18 at 10:56
  • Does the server require TLS connection? The error suggests that the tcp connection is reset by the server. – Xin Chen Jun 26 '18 at 04:57
  • AMQP package was not installed in MQ server – Bhai Jul 14 '18 at 23:05

0 Answers0