Could you explain us more? How you are creating this page from "Site Admin" or CRXDE? is this exception is coming when it is hitting your code? Simple way to verify this , after adding the page in "Site Admin" just refresh the parent node and check it,it is added or not.