title: Azure Local Development Queue ConnectionString
body: <p>I have created a new WorkerRole using the template for a QueueWorkerRole in VS 2013 and it creates code that looks like this:</p>
  
  <pre><code>        // Create the queue if it does not exist already
          var connectionString = CloudConfigurationManager.GetSetting("Microsoft.ServiceBus.ConnectionString");
          var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);
          if (!namespaceManager.QueueExists(QueueName))
          {
              namespaceManager.CreateQueue(QueueName);
          }
  
          // Initialize the connection to Service Bus Queue
          _client = QueueClient.CreateFromConnectionString(connectionString, QueueName);
  </code></pre>
  
  <p>The problem I ma having is setting the Microsoft.ServiceBus.ConnectionString correctly so that it will work with my local development queues running in the emulator.  By default it sets it up like this:</p>
  
  <pre><code>&lt;appSettings&gt;
      &lt;!-- Service Bus specific app setings for messaging connections --&gt;
      &lt;add key="Microsoft.ServiceBus.ConnectionString" value="Endpoint=sb://[your namespace].servicebus.windows.net;SharedSecretIssuer=owner;SharedSecretValue=[your secret]" /&gt;
  &lt;/appSettings&gt;
  </code></pre>
  
  <p>And I'm guessing this will work fine when I have a hosted service to connect to but I am just trying out some things locally and can't get it to connect.</p>
  
  <p>I have tried "UseDevelopmentStorage=True" and I've tried using the address I found when viewing the Storage Emulator UI "127.0.0.1:10001" as well as the Local Emulator using Standard Format I found here: <a href="http://www.connectionstrings.com/windows-azure/" rel="nofollow">http://www.connectionstrings.com/windows-azure/</a> (DefaultEndpointsProtocol=https;AccountName=devstoreaccount1;
  AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;) but I am having no luck.</p>
  
  <p>Sometimes I am seeing "The Service Bus connection string contains invalid property" in the Compute Emulator UI and other times I get an error that it can't connect.</p>
  
  <p>Thanks.</p>