Copied to clipboard

Flag this post as spam?

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


  • WestLifeUmbraco 39 posts 70 karma points
    Nov 15, 2012 @ 10:37
    WestLifeUmbraco
    0

    ArgumentNullException exception with Node.NiceUrl, Url, when in BeginRequest event

    Hi,
    I need a node's Url on every request, ideally in BeginRequest event, or as early as possible in a request pipeline. 
    Below is the code in BeginRequest event, with exception:
      var node = new Node(1059);  
    NiceUrl = 'node.NiceUrl' threw an exception of type 'System.ArgumentNullException'
    any idea on the earliest event to access it?
    Thanks in advance.
Please Sign in or register to post replies

Write your reply to:

Draft