I've encoutered a wired error. I have implemented Examine lucene extension and it works perfectly when i use it within my usercontrol, but as soon as i am using it within an XSLT it results in "Error parsing XSLT file: \xslt\ContentRightPosts.xslt" error .
Her's my setup:
in xsltExtensions.config
nope,.. the same )c: all my XSLT's failed at the same time.. And a little u
pdate,. I did some extensive googling and learned something new (c: when i add ?umbDebugShowTrace=true to page url, I can see a more detailed dbug information,.. on the XSLT errors (c:
when i type my assembly with bin directry and all i get this following error on my XSLT macro,..
umbracoMacro InnerException
Could
not load file or assembly 'Examine, Version=0.9.2.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The located assembly's
manifest definition does not match the assembly reference. (Exception
from HRESULT: 0x80131040) Could not load file or assembly 'Examine,
Version=0.9.2.0, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040) at UmbracoExamine.Contrib.XsltExtensions.Search(String searchText, Boolean useWildcards) at UmbracoExamine.Contrib.XsltExtensions.Search(String searchText)
it didn't bring me closer to the solution thou .. wired i've following assemblyes in my bin dir.
Where did you get the "UmbracoExamine.Contrib.dll" from?
As far as I am aware it's not been released yet. If you compiled it from the latest code on CodePlex, then make sure that you have copied across the corresponding "Examine.dll" and "UmbracoExamine.dll" ... as they would have changed since the v4.5 release.
I've got it from farmcode.com CodeGarden Demo site. So it should be the latest.. and all my usercontrols which use Examine work,... So i don't think that i got the wrong version somehow,..
I dont't think that Examine dll as it is has an XSLT extension class,.. i've checked it with refractor...
I wonder if i just have to make my own extension class,.. hmmm
Did you copy only "UmbracoExamine.Contrib.dll" across from the demo site? or all three DLLs? (I believe you'd need all three)
On a side-note: The "Examine.dll" wont contain any XSLT extensions, as that's the abstraction layer, all the Umbraco-specific code is in "UmbracoExamine.dll".
No i copied all three DLLs from the demo site.. well after some considaration i made my own Search extension using the UmbracoExamine. Well I'm going to blog about it thats for chore ,.. Thanx for all your help guys.
XSLT error when using UmbracoExamine
I've encoutered a wired error. I have implemented Examine lucene extension and it works perfectly when i use it within my usercontrol, but as soon as i am using it within an XSLT it results in "Error parsing XSLT file: \xslt\ContentRightPosts.xslt" error . Her's my setup: in xsltExtensions.config
in my xslt i've added the folowing code
is it possible to see a more accurate XSLT error description, I've difficult time debugging this, cant realy see why it fails that way it does ,..
I am using Umbraco 4.1, and all of the Examine and Lucene index stuff works, exept for this XsltExtenshen,.. )c:
Hi maanehunden,
Whether it's a typo I don't know, but that <br /> tag after the <xsl:output> instruction is a sure contender for an XSLT error :-)
/Chriztian
yes it is a type O (c:
In 4.1 you need to take the bin off the assembly path in XsltExtensions.
I've tryed it and all my XSLT's failed at the same time.. )c: I've removed bin from the assembly path ,.. like that
Sorry, should be
nope,.. the same )c: all my XSLT's failed at the same time..
And a little u pdate,. I did some extensive googling and learned something new (c: when i add ?umbDebugShowTrace=true to page url, I can see a more detailed dbug information,.. on the XSLT errors (c:
when i type my assembly with bin directry and all i get this following error on my XSLT macro,..
Could not load file or assembly 'Examine, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at UmbracoExamine.Contrib.XsltExtensions.Search(String searchText, Boolean useWildcards)
at UmbracoExamine.Contrib.XsltExtensions.Search(String searchText)
it didn't bring me closer to the solution thou .. wired i've following assemblyes in my bin dir.
Hi maanehunden,
Where did you get the "UmbracoExamine.Contrib.dll" from?
As far as I am aware it's not been released yet. If you compiled it from the latest code on CodePlex, then make sure that you have copied across the corresponding "Examine.dll" and "UmbracoExamine.dll" ... as they would have changed since the v4.5 release.
Cheers, Lee.
Hi Lee
I've got it from farmcode.com CodeGarden Demo site. So it should be the latest.. and all my usercontrols which use Examine work,... So i don't think that i got the wrong version somehow,..
I dont't think that Examine dll as it is has an XSLT extension class,.. i've checked it with refractor...
I wonder if i just have to make my own extension class,.. hmmm
Hi maanehunden,
Did you copy only "UmbracoExamine.Contrib.dll" across from the demo site? or all three DLLs? (I believe you'd need all three)
On a side-note: The "Examine.dll" wont contain any XSLT extensions, as that's the abstraction layer, all the Umbraco-specific code is in "UmbracoExamine.dll".
Cheers, Lee.
Hi Lee
No i copied all three DLLs from the demo site.. well after some considaration i made my own Search extension using the UmbracoExamine.
Well I'm going to blog about it thats for chore ,.. Thanx for all your help guys.
http://maanehunden.wordpress.com/2010/07/23/how-i-made-umbraco-search-with-lucene-indexing-eximine-and-xslt/
is working on a reply...