Page was not found : 'page id' in Episerver

1.7k views Asked by At

I got below error while debugging the code:

Exception Details: EPiServer.Core.PageNotFoundException: Page 6535 was not found

Please suggest the appropriate solution

Regards

4

There are 4 answers

2
Sergey Ryzhov On

You are trying to get non-existent page. You can check this code link

new PageReference(int id)

Perhaps you need to create it in Edit-mode.

You can get through the start page link

ContentReference.StartPage

And then get all tree pages and see where missed. http://tedgustaf.com/blog/2013/4/hide-pages-in-the-page-tree-in-episerver-7/

0
Frederik Vig On

If this happens when you start the application it means that the startpage in episerver.config is configured to that ID (and it doesn´t exist), or that you have a page provider configured for this ID (and it doesn´t exist).

0
Lusse On

If you are getting this error as soon as you visit your page, just login and go directly to edit mode. It could be that your startpage is pointing to a page that has been deleted or something alike.

So take your host and add /util/login.aspx That will take you to epi login. Once you are logged in, check your episerverframework.config (depends on which version you have but just try to find out the path to your cms) and see what kind of virtualpath the cms has. Could be /Epiui/cms or something alike.

You might need to add /edit or /admin depending on what you want to reach. But /edit should be your choice in this particular situation.

Then check your startpage for missing pages to see what could be pointing to that page.

It's a late answer but it might help you or someone else out :)

0
Jon On

Do you already have a functioning website or is this a new installation? If it's an existing one, go into Episerver's Edit mode (yoursite/episerver/cms/edit/) and use the search (top right of the screen with the magnifying glass icon) and enter the ID (6535) of the page that's missing, the page in question should appear in the search result.