Copied to clipboard

Flag this post as spam?

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


  • Mikko Vartiainen 9 posts 29 karma points
    May 19, 2011 @ 15:51
    Mikko Vartiainen
    0

    XSLTSeach 3.0 in Umbraco 4.7

    Hi there,

    I'm having some trouble with XSLTSearch 3.0 on a 4.7 installation.

    I had everything working with Umbraco 4.6 and XSLTSearch 2.8, then upgraded to Umbraco 4.7 and everything was still working fine. But now, after I upgraded XSLTSearch to 3.0 it won't run, at all.

    I only get the usual 'Error parsing XSLT file: \xslt\XSLTsearch.xslt'. If I check the XSLT and try to save it I get the following:

     

    Error occured
    
    System.Xml.Xsl.XslTransformException: Cannot find a script or an extension 
    object associated with namespace 'urn:PS.XSLTsearch'. 
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at startTime(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
    at 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.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)

    I've googled and read a lot about similar issues, but people seem to be running 4.6 and encountering an issue that should be solved in 4.7.

    Trying to run it with ?umbDebugShowTrace=true gives us this:

    umbracoMacro InnerException Cannot find a script or an extension object associated with namespace 'urn:PS.XSLTsearch'.
    Cannot find a script or an extension object associated with namespace 'urn:PS.XSLTsearch'.
    at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
    at System.Xml.Xsl.CompiledQuery.Query.startTime(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in C:\inetpub\www\xslt\XSLTsearch.xslt:line 33
    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)

    Does anybody have a clue about what the problem is?

  • Mikko Vartiainen 9 posts 29 karma points
    May 19, 2011 @ 15:58
    Mikko Vartiainen
    0

    The exact version of Umbraco is: v 4.7.0 (Assembly version: 1.0.4090.38017)

    The exact version of XSLTSearch is: 3.0.1

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    May 24, 2011 @ 17:10
    Douglas Robar
    0

    I wouldn't expect this error with Umbraco 4.7, though it was rather common in 4.6.x because of a bug there.

    Can you confirm that you have the /app_code/xsltsearch.cs file? That's where the PS.XSLTsearch extension resides and Umbraco should register it automatically.

    Perhaps when you upgraded from Umbraco 4.6 to 4.7 you missed a file or web.config update? Details on updating are at http://umbraco.codeplex.com/releases/view/62573

     

    Let me know what you find out.

    cheers,
    doug.

  • Mikko Vartiainen 9 posts 29 karma points
    May 28, 2011 @ 16:11
    Mikko Vartiainen
    0

    Hi Doug,

    No, /app_code/xsltsearch.cs was not there at all. I downloaded the package manually from Percipient and placed the file there myself, and magic: it works fine now! :)

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft