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 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 :)
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
Have you tried writing something harmless like:
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.
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
is working on a reply...