CurrenNode NullReference

Jan 6, 2010 at 12:38 PM

I can view my menu fine, and everything works,

but when I load a page that is not in the menu: Html.Menu("one", "two"); crashes with the msg: Html.Menu: Object Object reference not set to an instance of an object.


I only have this with pages that are not in the menu and when I add the page to the menu, they stop crashing... Is anyone else having this problem? Is there a work around other then creating the menuitem but making it invisible? Becuase then it will still show up in the sitemap/breadcrums which doesnt check the visibility as far as I know.

 

thanks in advance

 

Coordinator
Jan 6, 2010 at 1:36 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Jan 6, 2010 at 1:51 PM

Can you post a sample to reproduce this?