title: Exception in creating a WCF Service using MsmqIntegrationBinding
body: <p>My machine is Windows 7 ultimate (64 bit). I have installed MSMQ and checked that it is working fine (ran some sample codes for MSMQ).</p>
  
  <p>When i try to create a WCF Service using MsmqIntegrationBinding class, i get the below exception:</p>
  
  <p>"An error occurred while opening the queue:The queue does not exist or you do not have sufficient permissions to perform the operation. (-1072824317, 0xc00e0003). The message cannot be sent or received from the queue. Ensure that MSMQ is installed and running. Also ensure that the queue is available to open with the required access mode and authorization."</p>
  
  <p>I am running the visual studio in Administrator mode and explicitly grant permission to myself via a URL ACL using:
  netsh http add urlacl url=<a href="http://+:80/" rel="nofollow noreferrer">http://+:80/</a> user=DOMAIN\user</p>
  
  <p>Below is the code:</p>
  
  <pre><code> public static void Main()
      {         
          Uri baseAddress = new Uri(@"msmq.formatname:DIRECT=OS:AJITDELL2\private$\Orders");
          using (ServiceHost serviceHost = new ServiceHost(typeof(OrderProcessorService), baseAddress))
  
          {
  
              MsmqIntegrationBinding serviceBinding = new MsmqIntegrationBinding();
              serviceBinding.Security.Transport.MsmqAuthenticationMode = MsmqAuthenticationMode.None;
              serviceBinding.Security.Transport.MsmqProtectionLevel = System.Net.Security.ProtectionLevel.None;
              //serviceBinding.SerializationFormat = MsmqMessageSerializationFormat.Binary;
              serviceHost.AddServiceEndpoint(typeof(IOrderProcessor), serviceBinding, baseAddress);
              serviceHost.Open();
  
              // The service can now be accessed.
              Console.WriteLine("The service is ready.");
              Console.WriteLine("The service is running in the following account: {0}", WindowsIdentity.GetCurrent().Name);
              Console.WriteLine("Press &lt;ENTER&gt; to terminate service.");
              Console.WriteLine();
              Console.ReadLine();
  
              // Close the ServiceHostBase to shutdown the service.
              serviceHost.Close();
          }
      }
  </code></pre>
  
  <p>Can you please help?</p>