While creating the page (manually) I am getting "file not found error" for the page I am trying to create. When I am checking the log the error is like -
A critical error occurred while creating a PublishingPage through PublishingWeb.AddPublishingPage(string, PageLayout, SPFolder). System.IO.FileNotFoundException: The file http://win-k3ov869t32r:31141/sites/Demo7/Pages/testpage.aspx does not exist.
Here testpage is the name of the page I want to create.