We keep getting this error every time the website is restarted (IIS app pool recycled / website restarted).
The XML Data Integrity Report tab does NOT show any errors.
Deleting \app_data\umbraco.config and doing a site republish solves the problem, or at least removes the "XML cache is corrupt" error but it does not appear to be a permanent fix.
2020-03-26 09:44:11,599 [P6108/D2/T33] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.Exception: The Xml cache is corrupt. Use the Health Check data integrity dashboard to fix it.
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetXml(UmbracoContext umbracoContext, Boolean preview)
at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.HasContent(UmbracoContext umbracoContext, Boolean preview)
at Umbraco.Web.PublishedCache.ContextualPublishedCache`1.HasContent(Boolean preview)
at Umbraco.Web.UmbracoModule.EnsureHasContent(UmbracoContext context, HttpContextBase httpContext)
at Umbraco.Web.UmbracoModule.EnsureUmbracoRoutablePage(UmbracoContext context, HttpContextBase httpContext)
at Umbraco.Web.UmbracoModule.ProcessRequest(HttpContextBase httpContext)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Hmm, I found that there were a load of unresolved changes being indicated by uSync. None of them were changes that had not actually been done (i.e. the actual DataTypes, Templates, etc were already as they should be).
I "processed" them all by manually saving each listed item in Umbraco.
I then cycled the app pool and restarted the website ... and it loaded up OK (no XML cache error). Could that have been the problem / solution??
The Xml cache is corrupt
We keep getting this error every time the website is restarted (IIS app pool recycled / website restarted).
The XML Data Integrity Report tab does NOT show any errors.
Deleting \app_data\umbraco.config and doing a site republish solves the problem, or at least removes the "XML cache is corrupt" error but it does not appear to be a permanent fix.
Any ideas what could be causing this?
Hmm, I found that there were a load of unresolved changes being indicated by uSync. None of them were changes that had not actually been done (i.e. the actual DataTypes, Templates, etc were already as they should be).
I "processed" them all by manually saving each listed item in Umbraco.
I then cycled the app pool and restarted the website ... and it loaded up OK (no XML cache error). Could that have been the problem / solution??
I'm getting the same issue on a live site now, added more info to this post https://our.umbraco.com/forum/using-umbraco-and-getting-started/85834-the-xml-cache-is-corrupt-use-the-health-check-data-integrity-dashboard-to-fix-it
But no idea what is causing it :( Did you manage to get to the bottom of it at all?
That was a while ago now, so can't remember specifically - except for my last comment above. I would expect that was the solution in our case?
is working on a reply...