title: Cannot perform runtime binding on a null reference. Why?
body: <p>I have the following code in a MVC 5 view:</p>
  <pre><code>&lt;a href=&quot;@Url.Action(MVC.Home.Index())&quot;&gt;
    &lt;img src=&quot;@Url.Content(&quot;~/assets/logo.png&quot;)&quot; data-at2x=&quot;@Url.Content(&quot;~/assets/logo@2x.png&quot;)&quot;/&gt;
  &lt;/a&gt;
  </code></pre>
  <p>Now and then the application stops and I get the following error:</p>
  <blockquote>
  <p>Cannot perform runtime binding on a null reference</p>
  <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p>
  <p>Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference</p>
  </blockquote>
  <p>When I click over the image I see 2 messages:</p>
  <blockquote>
  <p>Encode image in base 64
  Define width and height attributes</p>
  </blockquote>
  <p>This is strange because the error happens only now and then ...</p>
  <p>Any idea why this might be happening?</p>