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