I am getting MQ exception of 2035 while connecting via MQ Explorer in c#.
I connected using MQ Queue Manager,Queue, Server Channel and Client Channel,Connection Name etc and created client and server instances using MQ Explorer 7.5 Version.
I am getting error code 2035 showing that is authorization issue to access MQ. I have added my account to Administrator and also in mqm group. But still getting Message Queue Exception code of 2035.
QueueManagerName - QUEUEMNGR_2
QueueName-QUEUE2
Server Connection Channel- SERVER_CHANNEL
Client Connection Channel- CLIENT_CHANNEL
Connection Name - SYSTEM.DEF.SVRCONN/TCP/10.15.1.6(1414)
Channel Info -SYSTEM.DEF.SVRCONN
Transmission Type-TCP
IP- 10.15.1.6
Port- 1414
What I have tried:
public string ConnectMQ(string strQueueManagerName, string strQueueName,
string strChannelInfo)
{
QueueManagerName = strQueueManagerName;
QueueName = strQueueName;
ChannelInfo = strChannelInfo;
char[] separator = {'/'};
string[] ChannelParams;
ChannelParams = ChannelInfo.Split( separator );
channelName = ChannelParams[0];
transportType = ChannelParams[1];
connectionName = ChannelParams[2];
String strReturn = "";
try
{
queueManager = new MQQueueManager( QueueManagerName,
channelName, connectionName );
strReturn = "Connected Successfully";
}
catch(MQException exp)
{
strReturn = "Exception: " + exp.Message ;
}
return strReturn;
}