question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot perform runtime binding on a null reference

See original GitHub issue

A function feeding of a queueTrigger bound to an auto-generated queue webjobs-blobtrigger-poison gets invoked once correctly (argument for a queue message contains data) and is invoked for the second time with a null message.

Log file output

2016-11-22T21:28:57.816 Function started (Id=675dbc96-85a1-4c6f-a87b-c165a20ffe09)
2016-11-22T21:28:57.816 C# Queue trigger function received: {
  "Type": "BlobTrigger",
  "FunctionId": "Host.Functions.CreateThumbnail",
  "BlobType": "BlockBlob",
  "ContainerName": "sample-images",
  "BlobName": "test.txt",
  "ETag": "\"0x8D4131E8E7D591D\""
}
2016-11-22T21:28:57.816 Function completed (Success, Id=675dbc96-85a1-4c6f-a87b-c165a20ffe09)
2016-11-22T21:32:08.875 Function started (Id=efd91564-89b8-4c98-9557-64bd10ae426b)
2016-11-22T21:32:08.875 C# Queue trigger function received:
2016-11-22T21:32:08.875 Function completed (Failure, Id=efd91564-89b8-4c98-9557-64bd10ae426b)
2016-11-22T21:32:08.906 Exception while executing function: Functions.NotifyAboutFailure. Anonymously Hosted DynamicMethods Assembly: Cannot perform runtime binding on a null reference.

Repro steps

  1. Create Function A to generate a poisonous message using blob trigger
  2. Create Function B to handle messages from a poisonous message queue

Expected behavior

Function to be invoked once only

Actual behavior

Invoked more than once

Related information

  • Programming language used: C#
  • Functions version: 1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
SeanFeldmancommented, Nov 22, 2016

Yep, already did that. Go @mathewc!

0reactions
SeanFeldmancommented, Dec 29, 2016

Can’t reproduce it anymore after upgrading Functions. Will close. If it happens again, will reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot perform runtime binding on a null reference ...
This simplified piece of code throws Cannot perform runtime binding on a null reference since speakers is not defined (null reference).
Read more >
I am getting Error in Asp.Net MVC "Cannot perform runtime ...
I am getting Error in Asp.Net MVC "Cannot perform runtime binding on a null reference". HASAN P. 212802045 6 Reputation points.
Read more >
Cannot Perform Runtime Binding on a Null Reference
Your system cannot perform runtime binding on a null reference Razor because the non-existent view bag calls a method, such as a runtime...
Read more >
Solution for error Cannot perform runtime binding on a null ...
It happens when you have a binding "typo" so the runtime is not able to find the property to bind, so it gets...
Read more >
MVC: Cannot perform runtime binding on a null reference
A null reference on a field that no longer exists or is empty, written in a custom piece of code. ... Narrow down...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found