title: Enterprise library msmq listener and private remote queues - cannot send message
body: <p>I have the following problem:</p>
  
  <p>I am trying to log messages to the remote private message queue. To do this I am using Enterprise library 5.0 and msmq trace listener in my application. Unfortunately, I always end up with the following error:</p>
  
  <blockquote>
    <p>Exception Type: System.Messaging.MessageQueueException
    MessageQueueErrorCode: IllegalFormatName
    Message: Format name is invalid.
    ErrorCode: -2147467259</p>
  </blockquote>
  
  <p>This is the queue path I am using:</p>
  
  <blockquote>
    <p>FormatName:Direct=TCP:192.168.1.1\Private$\MyPrivateQueue</p>
  </blockquote>
  
  <ol>
  <li>When I create MSMQ message directly (not using EntLib) and use above mentioned queue path, everything works fine. </li>
  <li>Also, when I change queue path to local private queue and use EntLib, message is also 
  sent correctly and this is why I am confused.</li>
  </ol>
  
  <p>As I understand, 1) shows that remote message queue is accessible and queue path is correct and 2) shows that EntLib Logging application block settings are correct.</p>
  
  <p>If anyone has any idea what could be the problem or you need clarification on anything please feel free to comment.</p>