title: Windows Azure - Web Role cannot access Local Development Queue Storage
body: <p>I have a class library that is shared between multiple Role projects in my solution.  Two of these projects are a Web Role and a Worker Role.</p>
  
  <p>They each have the same Configuration Setting:</p>
  
  <pre><code>&lt;Setting name="QueueConnectionString" value="UseDevelopmentStorage=true" /&gt;
  </code></pre>
  
  <p>each of them is making a call to this function:</p>
  
  <pre><code>public static void AddMessage(string Message)
      {
          var account = CloudStorageAccount.DevelopmentStorageAccount;
          ServicePoint queueServicePoint = ServicePointManager.FindServicePoint(account.QueueEndpoint);
          queueServicePoint.UseNagleAlgorithm = false;
          var client = account.CreateCloudQueueClient();
          var queue = client.GetQueueReference(DefaultRoleInstanceQueueName);
          queue.CreateIfNotExist();
          queue.AddMessage(new CloudQueueMessage(Message));
   }
  </code></pre>
  
  <p>When this executes in the Worker Role, it works without any issues; I've confirmed proper reads and writes of Queue messages.  When it executes in the Web Roles, the call to queue.CreateifNotExist() crashes with the error "Response is not available in this context".  I've tried searching for information on what could be causing this but so far my search efforts have been fruitless.  Please let me know if there's any additional information I can include.</p>