'List does not exist' when editing a publishing page?
-
16-10-2019 - |
Question
I get an error message...
"List does not exist"
when I attempt to edit a new page within a publishing site.
The log file doesn't provide me with any additional details...
System.Runtime.InteropServices.COMException: List does not exist. The page you selected contains a list that does not exist. It may have been deleted by another user.
I'm using a custom master page.
Just wondering what could be causing this error...?
Solution
I'm guessing you're deploying the master page through a feature?
In your master page module Elements.xml, remember to add List="116", like the following snippet shows:
<Module Name="MasterPages" List="116" Url="_catalogs/masterpage">
<File Path="MasterPages\custom_main.master" Url="custom_main.master" Type="GhostableInLibrary" />
</Module>
In order for the changes to be correctly applied, delete the masterpage from the master page gallery, and deploy the solution again.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange