Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony Candaele 1197 posts 2049 karma points
    Apr 17, 2011 @ 09:19
    Anthony Candaele
    0

    Cannot perform runtime binding on a null reference

    Hi,

    I upgraded an Umbraco 4.5.2 website to Umbraco 4.7, but apparently Razor scripts don't work. Everytime I try to run a page that has a Razor script, I get this message:

    Cannot perform runtime binding on a null reference

    Anyone familiar with this problem? And how can I solve this?

    Thanks for your help,

    Anthony Candaele
    Belgium

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Apr 17, 2011 @ 10:21
    Sebastiaan Janssen
    1

    Have you tried writing something harmless like:

    <umbraco:Macro runat="server" Language="cshtml">
      <p>Hello world</p>
    </umbraco:Macro>

    Have you copied the new web.config entries marked with "added in 4.6.2"? And there's a few new things in the umbracoSettings.config file as well.

  • Anthony Candaele 1197 posts 2049 karma points
    Apr 17, 2011 @ 15:26
    Anthony Candaele
    1

    Hi Sebastiaan,

    Thanks a lot, your advice solved the problem. The problem was caused because I didn't replace the web.config file during the upgrade process. I tried to at first, but when I surfed to the site, the install wizard started. Because it wasn't clear if the wizard would do an upgrade or a complete reinstall, I didn't take the risk and moved back the old web.config file.

    Now I copied the web.config of the Umbraco 4.7 build and let the install/upgrad wizard do it's job, and luckily it just did an upgrade of my Umbraco installation. I checked everything and now even Yannick Smet's excellent multilanguage tools works. You really make my day :)

    See you at codegarden,

    Anthony

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies