Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting this error while connecting to IBM MQ websphere in c#.
Getting the exception MQRC_NOT_AUTHORISED with Error Code 2035.
try

          {

              queueManager = new MQQueueManager(QueueManagerName,

              channelName, connectionName);

              strReturn = "Connected Successfully";

          }

          catch (MQException exp)

          {



              strReturn = "Exception: " + exp.Message + " "+"Inner Exception"+ exp.InnerException;

          }

          return strReturn;


What I have tried:

Code is as below:
try

          {

              queueManager = new MQQueueManager(QueueManagerName,

              channelName, connectionName);

              strReturn = "Connected Successfully";

          }

          catch (MQException exp)

          {



              strReturn = "Exception: " + exp.Message + " "+"Inner Exception"+ exp.InnerException;

          }

          return strReturn;
Posted
Updated 5-Jan-20 17:32pm

1 solution

Clearly the error means what it says, and you need some sort of authorisation.

c# client connect mq wth username password - IBM Developer Answers[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900