Copied to clipboard

Flag this post as spam?

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


  • James Bielefeldt 11 posts 31 karma points
    Mar 02, 2011 @ 19:32
    James Bielefeldt
    0

    Cannot find a script or an extension object associated with namespace 'urn:PS.XSLTsearch'.

    I installed the package and added this to  my masterpage:

    <umbraco:Macro ID="Macro3" Alias="XSLTsearch" runat="server"  />

    When I run the site, with the debugging querystring (?umbdebugshowtrace=true), I get this error:

    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:\Documents and Settings\James\My Documents\My Web Sites\Umbraco CMS1\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, XmlSequenceWriter results)
      at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
      at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
      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)
    0.932053281872635 0.007893
    aspx.page End Init

     

    What am I missing?

    I have entry in my xsltextensions.config file for the xsltsearch. Should I? What would it be?

    I'm running Umbraco 4.6.1

    Thanks in advance!

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 03, 2011 @ 00:46
    Jan Skovgaard
    0

    Hi James

    What version of XSLTSearch have you installed?

    And what do you mean by this -"I have entry in my xsltextensions.config file for the xsltsearch. Should I? What would it be?", does the there exist references for the XSLT extension in there? Or how should this sentence be percieved? (If the XSLT files are not breaking in the backend I think this file is probably fine)

    And could you perhaps post a snippet of the code?

    You're probably just missing a namespace reference...but let's see some code so we can get a better idea of the problem.

    /Jan

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 03, 2011 @ 14:13
    Douglas Robar
    0

    Umbraco 4.6.1 has a requirement for the mvc dll when using an app_code xslt extension (which XSLTsearch has ... the PS.XSLTsearch). You don't have mvc installed and so it fails. This bug has been fixed for Umbraco 4.7.

    Until Umbraco 4.7 is released, you can copy the mvc dll into your site's /bin folder and then all should be fine. Full details and a link to download the dll here: http://our.umbraco.org/projects/website-utilities/xsltsearch/xsltsearch-bugs/17353-Why-30-need-to-install-mvc-I-think-this-is-a-bug

    An exhaustive thread discussing the underlying issue here: http://our.umbraco.org/projects/website-utilities/xsltsearch/xsltsearch-bugs/16139-Error-when-saving-XSLT-file-in-Umbraco-46-beta

    cheers,
    doug.

     

  • Maff 141 posts 466 karma points
    Dec 12, 2013 @ 12:07
    Maff
    0

    Hi Doug! :)

    We've actually got the same issue with XSLTsearch on our staging server - works fine on my local dev server and I have the same xslt/templates/DLLs on both servers.

    Umbraco version is 4.9.1 and both sites have the same System.Web.Mvc.dll version 3.0.20105.0.

    The error is at line 40 - <xsl:variable name="startTime" select="PS.XSLTsearch:getTime()"/>

    Thanks,

    Maff

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 12, 2013 @ 12:28
    Douglas Robar
    2

    Hi, Maff,

    Do you have the /app_code/xsltsearch.cs file? That's where the PS namespace is defined.

    cheers,
    doug.

  • Maff 141 posts 466 karma points
    Dec 12, 2013 @ 12:34
    Maff
    0

    Genius! :)

    It was on dev but not on staging (I assumed that all .cs files would be compiled into the DLL so didn't copy this one up).

    Thanks for the quick response :)

    Maff

  • Sean 12 posts 32 karma points
    Mar 20, 2014 @ 13:15
    Sean
    0

    I use VB.Net and Umbraco 7.0.3 and I'm trying to install XSLTSearch 3.0.5. I have the file App_Code/XSLTSearch.cs but I am getting this same error.

    Error parsing XSLT file: \xslt\XSLTsearch.xslt

    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:\***\xslt\XSLTsearch.xslt:line 44   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, XmlSequenceWriter results)   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)   at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)   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.GetXsltTransformResult(XmlDocument macroXml, XslCompiledTransform xslt)   at umbraco.macro.LoadMacroXslt(macro macro, MacroModel model, Hashtable pageElements, Boolean throwError)

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 20, 2014 @ 13:18
    Jan Skovgaard
    0

    Hi Sean

    You should use ezSearch instead since xsltSearch is not supported in v7 of Umbraco if I remember correctly.

    You can find it here http://our.umbraco.org/projects/website-utilities/ezsearch

    Hope this helps.

    /Jan

  • Sean 12 posts 32 karma points
    Mar 20, 2014 @ 13:25
    Sean
    0

    Thanks! missed that one

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Mar 20, 2014 @ 15:28
    Douglas Robar
    1

    Actually, v7 and XSLTsearch should work fine but there's a bug in Umbraco (see http://issues.umbraco.org/issue/U4-3425).

    However, I agree that ezSearch is the way to go because it is a better search tool. Uninstall XSLTsearch and install ezSearch instead.

    cheers,
    doug. 

     

Please Sign in or register to post replies

Write your reply to:

Draft