Date Created: Fri 10-Jun-2011

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


QRC_NOT_AUTHORIZED 2035 when using C# API to connect to Queue Manager

Problem:

MQSeries Exception: MQRC_NOT_AUTHORIZED
MQSeries Exception: 2035
MQSeries Exception: at IBM.WMQ.MQBase.throwNewMQException()
at IBM.WMQ.MQQueueManager.Connect(String queueManagerName)
at IBM.WMQ.MQQueueManager..ctor(String queueManagerName, Hashtable properties
)



Solution:

1. Either create the correct channel that you are trying to connect to, or use the correct channel name.

// Setup connection information

queueProperties = new Hashtable();

queueProperties[MQC.HOST_NAME_PROPERTY] = host;

queueProperties[MQC.PORT_PROPERTY] = port;

queueProperties[MQC.CHANNEL_PROPERTY] = channel;

queueProperties[MQC.USER_ID_PROPERTY] = username;

queueProperties[MQC.PASSWORD_PROPERTY] = password;

2. If you have a client channel (CLNTCONN/SVERCONN) that already exists, then set the MCAUSER setting on the SVRCONN channel to ensure the client connects as the use you want. For better security you may want to consider using a security exit.

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many leading brands around the world. Steve specialises in JEE, DevOps and Thought Leadership.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

Courses

  • WebSphere Courses

Articles

WebSphere Categories

Other Categories