does it happen on one specific publishing page or on all pages? If it happens on 1 page try to add "?contents=1" to the url of this page and load it - it will open Web Parts Maintenance page. On this page check what web parts are added on the page currently. It looks like something is wrong with image renditions - so if there is some image web part on the page you may try to remove it from Web Parts Maintenance page (which is opened when) and load page after that.
Sharepoint 2013 (Edit publishing page error)
Hi
When we try and edit a publishing page or add OOTB webpart ot the page in sharepoint 2013 get error below in logs
=======================================================================================
Application error when access /_layouts/15/ImageRenditionSettings.aspx, Error=Error in line 1 position 156. Expecting element 'SiteImageRenditions' from namespace 'http://schemas.datacontract.org/2004/07/Microsoft.SharePoint.Publishing'.. Encountered 'Element' with name 'SiteImageRenditions', namespace 'https://schemas.datacontract.org/2004/07/Microsoft.SharePoint.Publishing'.
at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at Microsoft.SharePoint.Publishing.ImageRenditionCollection.<>c__DisplayClassa.<GetRenditions>b__9()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.SharePoint.Publishing.ImageRenditionCollection.GetRenditions(Guid siteId)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.ImageRenditionSettingsPage.get_SiteRenditions()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.ImageRenditionSettingsPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
=======================================================================================
Any help resolving this issue would be helpful
Thank You and stay safe.
Kind Regards
2 answers
Sort by: Newest
-
-
Elsie Lu_MSFT 9,761 Reputation points
2021-05-24T02:44:18.087+00:00 Hi @Zunaid Valley ,
To narrow down your issue:
- Can the operation on the UI be successful? Is there any error message on the page?
- Are all page/web parts unable to be successfully published/added?Does it work on other sites?
- What is the user's permission level?
- You could also do an IISRESET to see what happens.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.