Click here to Skip to main content
15,910,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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;

        }
Posted
Comments
ranio 19-Apr-18 0:02am    
Awaiting a response upon this ASAP.

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