title: Lock supplied is invalid
body: <p>I'm using a Microsoft azure service bus queue and whenever I run it locally I get the following 2 errors:</p>
  <p>Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell]</p>
  <p>Microsoft.Azure.ServiceBus.MessageLockLostException: The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue, or was received by a different receiver instance.</p>
  <p>Here is my code:</p>
  <pre><code>public async Task Run([ServiceBusTrigger(&quot;&lt;queue-name&gt;&quot;, Connection = &quot;queueConnectionString&quot;)] Message message, MessageReceiver messagereceiver, ILogger logger)
  {
      var bodyJson = Encoding.UTF8.GetString(message.Body);
      var myMessage = JsonConvert.DeserializeObject&lt;NewSubmissionMessage&gt;(bodyJson);
      try
      {
          await _application.ProcessNewSubmission(myMessage);
          await messagereceiver.CompleteAsync(message.SystemProperties.LockToken);
      }
      catch (InvalidPackageException ex)
      {
          await messagereceiver.DeadLetterAsync(message.SystemProperties.LockToken, deadLetterReason: ex.Message);
      }
  }
  </code></pre>