I've installed xsltsearch and set everything up, but I have discovered an issue when trying to save the xslt file, which is returning the error Could not load file or assembly 'Lucene.Net, Version=2.9.4.1,
This is where things get strange: When I checked the version of Lucene.Net.dll it's 2.9.2.2 so I took a copy of 2.9.4.1 from the other project (I have 4 websites in 1 Umbraco installation, but set up as separate visual studio projects) and added it to the bin folder, replacing the 2.9.2.2 version
When I rebuild the project and check the version of Lucene.Net.dll it changes back from 2.9.4.1 to 2.9.2.2
Don't think this is necessarily an issue with XSLT search, but it's where I'm having trouble.
I have literally NO idea how compiling the project could change the version of Lucene.Net.dll
Any help will be much appreciated - hopefully it's something small!
Could you have a reference in your project to the older Lucene.Net.dll version. I think on build VS will copy dlls from the references into the projects bin folder as well as building the projects own dll. If so delete that reference in the project and create a new one to the correct version, rebuild...
What version of Umbraco are you using? Is it a fresh install or an upgraded install? And are you using uComponents 3 or 4? Since Umbraco 4.8 some of the most popular datatypes from uComponents has been made part of the core in Umbraco.
So if you have upgraded Umbraco from 4.7.x for instance that means you need to make a workaround to make sure uComponents works as expected and avoid weird issues like the one you're describing. Ucomponents before version 5 needs version 2.9.2.2 of Lucene in order to work.
For anyone who may have similar issues - the real issue here is that I'm an IDIOT!
I got mixed up with another project - I took this over for another dev and am building 3 more site into existing Umbraco installation - and just checked and discovered it's actually Umbraco 4.7.1!!
So no wonder I couldn't get XSLT Search to work, no wonder I couldn't get uQuery from Umbraco.dll !
@Jan thanks for your help - I'm now going to hang my head in shame :D
Problems with XSLT Search
Hope someone can help with this:
I've installed xsltsearch and set everything up, but I have discovered an issue when trying to save the xslt file, which is returning the error Could not load file or assembly 'Lucene.Net, Version=2.9.4.1,
This is where things get strange: When I checked the version of Lucene.Net.dll it's 2.9.2.2 so I took a copy of 2.9.4.1 from the other project (I have 4 websites in 1 Umbraco installation, but set up as separate visual studio projects) and added it to the bin folder, replacing the 2.9.2.2 version
When I rebuild the project and check the version of Lucene.Net.dll it changes back from 2.9.4.1 to 2.9.2.2
Don't think this is necessarily an issue with XSLT search, but it's where I'm having trouble.
I have literally NO idea how compiling the project could change the version of Lucene.Net.dll
Any help will be much appreciated - hopefully it's something small!
Hi Richard,
So I'm not the only one working on Saturday mate!
Could you have a reference in your project to the older Lucene.Net.dll version. I think on build VS will copy dlls from the references into the projects bin folder as well as building the projects own dll. If so delete that reference in the project and create a new one to the correct version, rebuild...
Matt
Hi Richard
What version of Umbraco are you using? Is it a fresh install or an upgraded install? And are you using uComponents 3 or 4? Since Umbraco 4.8 some of the most popular datatypes from uComponents has been made part of the core in Umbraco.
So if you have upgraded Umbraco from 4.7.x for instance that means you need to make a workaround to make sure uComponents works as expected and avoid weird issues like the one you're describing. Ucomponents before version 5 needs version 2.9.2.2 of Lucene in order to work.
Lee Kelleher has posted some instructions on how to work around this issue here: http://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions/33021-Upgrading-to-Umbraco-48-breaks-support-for-uComponents
Hope this helps.
/Jan
No you're not the only person working on Saturday @Matt! I already removed the reference before replacing the .dll so it's not that.
@Jan I noticed a post by @JasonMacKay yesterday which you were helping with and I should have clarified these things before you asked:
This is a fresh install not upgraded, it's 4.9
I'm using uComponents v4 and uSiteBuilder
So uComponents v4 needs Lucene 2.9.2.2 so possibly when compiling the project, uComponents is causing this?
I'm only using MTNP which is now part of the core so I'll remove uComponents and see if this resolves the issue.
I'll post my results - thanks guys!
That's actually not going to work for me.
I'm working code-first so that when using MTNP I can access the selected nodes via uQuery but this doesn't seem to be available in uComponents v5 ?
Hi Richard
Apparently uQuery is also part of umbraco core from v4.8 according to this discussion http://ucomponents.codeplex.com/discussions/393146
Hope this helps.
/Jan
Hi Jan
So I realised I had already followed the steps for working around uComponents v4, therefore already have a bin/legacy folder with Lucene.Net v2.9.2.2
Weird that when I drop 2.9.4.1 into the bin folder and save the xslt file it saves correctly.
As soon as I compile the project, the bin version of Lucene.Net changes back to 2.9.2.2 - Not sure why compiling would cause it to roll back?
I'll take a look at that post - if I can get at uQuery in the core then I can remove uComponents and "hopefully" upgrade the Lucene.Net.dll file
Will again posts results, in case anyone else has this issue.
Thanks again!
For anyone who may have similar issues - the real issue here is that I'm an IDIOT!
I got mixed up with another project - I took this over for another dev and am building 3 more site into existing Umbraco installation - and just checked and discovered it's actually Umbraco 4.7.1!!
So no wonder I couldn't get XSLT Search to work, no wonder I couldn't get uQuery from Umbraco.dll !
@Jan thanks for your help - I'm now going to hang my head in shame :D
is working on a reply...