title: MQ error 2085 while connecting with remote queue
body: <p>My .NET code can connect and put a message to a remote queue successfuly. However, the same code does not work with local queue. It throws 2085 error. What different setting should be set in code to make that work with local queue?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>Hashtable queueProperties = new Hashtable();
  queueProperties[MQC.HOST_NAME_PROPERTY] = "10.x.x.x";
  queueProperties[MQC.PORT_PROPERTY] = 1451;
  queueProperties[MQC.CHANNEL_PROPERTY] = "TST1.TRADE.CHANNEL";
  
  try
  {
      // Attempt the connection
      queueManager = new MQQueueManager("MYQUEUEMANAGER", queueProperties);
      strReturn = "Connected Successfully";
  }
  catch (MQException mexc)
  {
      // TODO: Setup other exception handling
      throw new Exception(mexc.Message
                 + " ReasonCode: " + mexc.ReasonCode
                 + "\n" + GetReason(mexc.ReasonCode), mexc);
  }
  </code></pre>
  
  <p>Here, the code is internally using the IIS user id (application pool user) to connect with MQ because this code is run as part of WCF service.</p>