Error after upgrade to 7.2.1 Unable to cast object of type 'System.Xml.XPath.XNodeNavigator' to type 'System.Xml.IHasXmlNode'.
Hi We are getting the following error after the upgrade from 7.1.1 to 7.2.1. Everything appeared to upgrade ok after doing the required copies and merges.
Server Error in '/' Application.
Unable to cast object of type 'System.Xml.XPath.XNodeNavigator' to type 'System.Xml.IHasXmlNode'.
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Xml.XPath.XNodeNavigator' to type 'System.Xml.IHasXmlNode'.
Source Error:
Line 20: if(featured.HasValue("featureImage")) {
Line 21: var media = umbraco.library.GetMedia(featured.featureImage, true);
Line 22: XmlNode _xmlNode = ((IHasXmlNode)media.Current).GetNode().FirstChild;
Line 23: photo = _xmlNode.FirstChild.InnerText;
Line 24: }
Error after upgrade to 7.2.1 Unable to cast object of type 'System.Xml.XPath.XNodeNavigator' to type 'System.Xml.IHasXmlNode'.
Hi We are getting the following error after the upgrade from 7.1.1 to 7.2.1. Everything appeared to upgrade ok after doing the required copies and merges.
Server Error in '/' Application.
Unable to cast object of type 'System.Xml.XPath.XNodeNavigator' to type 'System.Xml.IHasXmlNode'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidCastException: Unable to cast object of type 'System.Xml.XPath.XNodeNavigator' to type 'System.Xml.IHasXmlNode'.
Source Error:
Line 20: if(featured.HasValue("featureImage")) { Line 21: var media = umbraco.library.GetMedia(featured.featureImage, true); Line 22: XmlNode _xmlNode = ((IHasXmlNode)media.Current).GetNode().FirstChild; Line 23: photo = _xmlNode.FirstChild.InnerText; Line 24: }
Source File: e:\OnlifeMarketing\Views\Partials\FeaturedFirst.cshtml Line: 22
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237
I forgot to ask if anybody has seen this and recommend the fix. We did copy over the grid folder per the instructions
Only for versions lower than 7.2.0:
I am seeing this same error when I attempt to upgrade my 7.0.4 Instance to 7.1.9, 7.2.0 or 7.2.2
Incidently, I do not see this error when I attempt to upgrade my 7.0.4 instance to 7.1.5 or 7.1.8
So, I suspect something in Umbraco broke my application in/beyond 7.1.9
Any resolution/ideas would be greatly appreciated.
Thanks
My specific error is:
is working on a reply...