Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Dammark 552 posts 1292 karma points
    Nov 26, 2015 @ 14:16
    Sebastian Dammark
    0

    GetXmlDocumentByUrl fails on Windows 2012 R2

    I've moved an older Umbraco 4.7.1 from Windows 2008 R2 to Windows 2012 R2 and now this fails:

    GetXmlDocumentByUrl()
    

    The URL provided returns valid XML, so I don't really know what the problem could be.

    Both sites are running the same version of .NET.

    Any ideas ?

  • Chriztian Steinmeier 2732 posts 8341 karma points MVP 5x admin c-trib
    Nov 26, 2015 @ 14:30
    Chriztian Steinmeier
    0

    Hi Sebastian,

    Any useful error messages available?

    /Chriztian

  • Sebastian Dammark 552 posts 1292 karma points
    Nov 26, 2015 @ 14:42
    Sebastian Dammark
    0
    An error occurred during a call to extension function 'GetXmlDocumentByUrl'. See InnerException for a complete description of the error.
    An error occurred during a call to extension function 'GetXmlDocumentByUrl'. See InnerException for a complete description of the error.
      at System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args)
      at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList'1[] args)
      at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double {urn:schemas-microsoft-com:xslt-debug}last, IList'1 {urn:schemas-microsoft-com:xslt-debug}namespaces) in E:\Hosting\LocalUser\client\client.dk\xslt\GoogleSiteSearch.xslt:line 21
      at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator , Double , Double )
      at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
      at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
      at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
      at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
      at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements)
    

    Pretty regular .NET error

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 26, 2015 @ 15:43
    Douglas Robar
    0

    Can you run any XSLT?

    If not, then you've got a fundamental problem with missing MSXML 6.0 on the server.

    If you can run XSLT, is the problem with the umbraco.library generally or only the GetXmlDocumentByUrl call?

    #oldSkoolDebugging

    cheers,
    doug.

  • Lee Kelleher 3972 posts 15374 karma points MVP 11x admin c-trib
    Nov 26, 2015 @ 15:56
    Lee Kelleher
    0

    Following up on Doug's comment...

    If XSLT is fine and calling umbraco.library:GetXmlDocumentByUrl() is the problem, you could try the uComponents version?

    (main difference is that it handles gzipped XML)

    http://ucomponents.org/xslt-extensions/xml/#getxmldocumentbyurl

    If that doesn't work, then is there any other details from the .NET error? (the InnerException?)

Please Sign in or register to post replies

Write your reply to:

Draft