Copied to clipboard

Flag this post as spam?

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


  • Martin Wiboe 3 posts 23 karma points
    Mar 23, 2011 @ 20:59
    Martin Wiboe
    0

    NullReferenceException after upgrading umbraco

    Hi,

    I have just upgraded our umbraco installation from 4.5.2 to 4.7.0. I did this by deleting everything in the /bin directory and extracting 4.7.0 on top of the old files.
    I pointed the new installation at the existing database, and the umbraco installer completed. I also republished the entire site.

    I can access the backend fine, but when I load the front page, I get a nullreferenceexception. By looking at the trace and the source code, I have determined that the exception occurs in umbraco\presentation\requestHandler.cs line 348 or 349. The offending expression is in the conditional:

     

    Access.IsProtected(int.Parse(currentPage.Attributes.GetNamedItem("id").Value), currentPage.Attributes.GetNamedItem("path").Value))

    How can I resolve this?

    Thank you,

    Martin

     

  • Daniel Bardi 927 posts 2562 karma points
    Mar 23, 2011 @ 21:01
    Daniel Bardi
    0

    You have to run an upgrade.. browse to http://domain/install/default.aspx

  • Martin Wiboe 3 posts 23 karma points
    Mar 23, 2011 @ 21:09
    Martin Wiboe
    0

    Thanks for the reply!

    I did run the installer, and it completed successfully. I assume that the id or path attribute does not exist for the page - is there any way I can add it manually?

  • Daniel Bardi 927 posts 2562 karma points
    Mar 23, 2011 @ 21:35
    Daniel Bardi
    0

    Republish the content.. (right-click Content node).. will refresh the site xml.

  • Martin Wiboe 3 posts 23 karma points
    Mar 23, 2011 @ 21:36
    Martin Wiboe
    0

    As I said, I did republish the site.

  • 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.

    Continue discussion

Please Sign in or register to post replies