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?
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.
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.
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()"/>
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'.
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)
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!
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
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.
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
Hi, Maff,
Do you have the /app_code/xsltsearch.cs file? That's where the PS namespace is defined.
cheers,
doug.
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
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)
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
Thanks! missed that one
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.
is working on a reply...