English version of all error messages you can encounter while programming
  |   ABOUT


Solution for "Cannot perform runtime binding on a null reference"



This issue is related to MVC on the .Net Framework. It happens when you have a binding "typo" so the runtime is not able to find the property to bind, so it gets a NULL reference and crashes.

1. Ensure you have the correct casing for your bindings

Like in this example : https://stackoverflow.com/questions/19457804/cannot-perform-runtime-binding-on-a-null-reference-but-it-is-not-a-null-referen/27788067#27788067

2. Declare your Model in the View

Like in this example : https://stackoverflow.com/questions/29617502/asp-net-mvc4-cannot-perform-runtime-binding-on-a-null-reference/29617610#29617610




Localized versions of this error

U nulového odkazu nelze provést vazbu za běhu.
 
No se puede realizar enlace en tiempo de ejecución en una referencia NULL.
 
Nie można wykonać wiązania w czasie wykonania na pustym odwołaniu.
 
Det går inte att utföra bindning under körning för en null-referens
 
Null bir başvuruya bağlanma çalışma zamanında gerçekleştirilemez
 
无法对 null 引用执行运行时绑定
 
無法對 null 參考進行執行階段繫結

Disclaimer
Those solutions have been provided to you without any guarantee, they have been found on different help forums and brought to you here to ease your resolution process.







Copyright © dotmedias 2012 Launched in 2012, to help programmers finding solutions