Could not parse xpath expression: //errorPages[@nodename='404']
System.InvalidOperationException: XPathValue must be an XPathNavigator or a string.
This has been working for months and has seemingly broken after a recent umbraco upgrade to 10.2.1. Parsing the error page by the page content key still works.
XPath custom error page not working
Have a page called 404. To add a custom 404 page as per the documentation here: https://our.umbraco.com/documentation/tutorials/Custom-Error-Pages/
This was added to the appsettings
But returns the following error:
Could not parse xpath expression: //errorPages[@nodename='404'] System.InvalidOperationException: XPathValue must be an XPathNavigator or a string.
This has been working for months and has seemingly broken after a recent umbraco upgrade to 10.2.1. Parsing the error page by the page content key still works.
Any help or comments appreciated
Some related GitHub Issues:
v11.2 - https://github.com/umbraco/Umbraco-CMS/issues/13907
v13 - https://github.com/umbraco/Umbraco-CMS/issues/15582 - This one discusses a bug in Umbraco Core, and there are various work-arounds
We set directly the ID of the error page in the appsettings. Not very dynamic, but the ErrorPage isn't some we or our clients do change.
is working on a reply...