Im getting all children of page node.
and then looping them to get the database document item, but then I get an error saying that the node dosn't exsist and if I look in backend the node is no longer there so it's deleted long ago but still show in the list im getting.
My code
List<umbraco.interfaces.INode> currentNodes = parentNode.ChildrenAsList.OrderBy(x => x.Name).ToList();
foreach(var item in currentNodes)
{
Document document = new Document(item.Id);
// do some stuff to document
}
I have tried republishing site because I was thinking some kind of cash problem.
but that didn't help.
deleted node still show in code
Im getting all children of page node. and then looping them to get the database document item, but then I get an error saying that the node dosn't exsist and if I look in backend the node is no longer there so it's deleted long ago but still show in the list im getting.
My code
I have tried republishing site because I was thinking some kind of cash problem. but that didn't help.
Just looked in umbraco.config and it is still in here but. so the node is still cashed but when i Republish entire site its not going away -_-
is working on a reply...