NHibernate.Search library package reference - public key token required?

131 views
Skip to first unread message

Matan Goldschmiedt

unread,
Apr 25, 2011, 4:49:19 PM4/25/11
to NHibernate Contrib - Development Group
Hi,

I've added NHibernate search to my project and tried to run some
queries, but I get the following error:

FluentNHibernate.Cfg.FluentConfigurationException: An invalid or
incomplete configuration was used while creating a SessionFactory.
Check PotentialReasons collection, and InnerException for more detail.

---> System.IO.FileLoadException: Could not load file or assembly
'Lucene.Net, Version=2.9.2.2, Culture=neutral,
PublicKeyToken=f5940d1699e37ff1' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)

When printing the assembly's information, I can see it doesn't have a
PublicKeyToken, yet NHibernate is expecting one. I got stuck with a
couple of questions:
1. Does the current NuGet package add an incompatible version of
Lucene and NH?
2. Should NHibernate expect a specific version in the first place?
3. How come it only happened to me? :)

Thanks.

--
Make sure to check out my blog at http://www.codecovered.net

Dario Quintana

unread,
Apr 25, 2011, 5:22:28 PM4/25/11
to nhc...@googlegroups.com
Hi, I'll have a look into this


--
You received this message because you are subscribed to the Google Groups "NHibernate Contrib - Development Group" group.
To post to this group, send email to nhc...@googlegroups.com.
To unsubscribe from this group, send email to nhcdevs+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhcdevs?hl=en.




--
Dario Quintana

Matan Goldschmiedt

unread,
Apr 26, 2011, 11:19:21 AM4/26/11
to NHibernate Contrib - Development Group
Thanks, let me know if you need any help.

On Apr 26, 12:22 am, Dario Quintana <conta...@darioquintana.com.ar>
wrote:
> Hi, I'll have a look into this
>
> On Mon, Apr 25, 2011 at 5:49 PM, Matan Goldschmiedt <mata...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Hi,
>
> > I've added NHibernate search to my project and tried to run some
> > queries, but I get the following error:
>
> > FluentNHibernate.Cfg.FluentConfigurationException: An invalid or
> > incomplete configuration was used while creating a SessionFactory.
> > Check PotentialReasons collection, and InnerException for more detail.
>
> >         ---> System.IO.FileLoadException: Could not load file or assembly
> > 'Lucene.Net, Version=2.9.2.2, Culture=neutral,
> > PublicKeyToken=f5940d1699e37ff1' or one of its dependencies. The
> > located assembly's manifest definition does not match the assembly
> > reference. (Exception from HRESULT: 0x80131040)
>
> > When printing the assembly's information, I can see it doesn't have a
> > PublicKeyToken, yet NHibernate is expecting one. I got stuck with a
> > couple of questions:
> > 1. Does the current NuGet package add an incompatible version of
> > Lucene and NH?
> > 2. Should NHibernate expect a specific version in the first place?
> > 3. How come it only happened to me? :)
>
> > Thanks.
>
> > --
> > Make sure to check out my blog athttp://www.codecovered.net
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "NHibernate Contrib - Development Group" group.
> > To post to this group, send email to nhc...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > nhcdevs+u...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/nhcdevs?hl=en.
>
> --
> Dario Quintana

--
Make sure to check out my blog at www.codecovered.net

Matan Goldschmiedt

unread,
May 3, 2011, 4:29:26 PM5/3/11
to NHibernate Contrib - Development Group
Hi, any updates?

Dario Quintana

unread,
May 12, 2011, 3:18:32 PM5/12/11
to nhc...@googlegroups.com
Let's me check it out. Sorry the delay 

Matan Goldschmiedt

unread,
May 14, 2011, 5:22:51 PM5/14/11
to NHibernate Contrib - Development Group
Thanks, waiting for your reply.

On May 12, 10:18 pm, Dario Quintana <conta...@darioquintana.com.ar>
wrote:
> Let's me check it out. Sorry the delay
>

Dario Quintana

unread,
May 17, 2011, 1:00:12 PM5/17/11
to nhc...@googlegroups.com
I think is ok now, have a try http://nuget.org/List/Packages/NHibernate.Search

The problem was: the lucene nuget package lib, and the contrib lib were different. I updated the contrib with the nuget lib and now is ok.

Fabio Maulo

unread,
May 17, 2011, 2:12:48 PM5/17/11
to nhc...@googlegroups.com
mmmm... I don't think that the nuget version of lucene is something you can take in account...
The version used in NH-Search (last released) was 2.9.2 compiled from Lucene sources.
Have you the official 2.9.2 released by Lucene.NET team ?

If no, would be better to use the version we have released with the last NHSearch without the dependency to that nuget package...
The TeamCity server said that there is something wrong with the version in the trunk.
Fabio Maulo

Fabio Maulo

unread,
May 17, 2011, 2:18:32 PM5/17/11
to nhc...@googlegroups.com
nuget version is 2.9.2.2 and the package was published 2011-01-07
the official release is 2.9.2 released 2011-03-06
--
Fabio Maulo

Dario Quintana

unread,
May 17, 2011, 4:51:58 PM5/17/11
to nhc...@googlegroups.com
That crossed my mind. Then we should email to the package owner of Lucene on nuget.
For now, I think we should let the nuget NH.Search how it is, at least is usable.

Matan Goldschmiedt

unread,
May 17, 2011, 4:56:25 PM5/17/11
to NHibernate Contrib - Development Group
Package works for me, basic usage.

Thanks!

On May 17, 11:51 pm, Dario Quintana <conta...@darioquintana.com.ar>
wrote:
> That crossed my mind. Then we should email to the package owner of Lucene on
> nuget.
> For now, I think we should let the nuget NH.Search how it is, at least is
> usable.
>
>
>
>
>
>
>
>
>
> On Tue, May 17, 2011 at 3:18 PM, Fabio Maulo <fabioma...@gmail.com> wrote:
> > nuget version is 2.9.2.2 and the package was published 2011-01-07
> > the official release is 2.9.2 released 2011-03-06
> >http://www.apache.org/dist/incubator/lucene.net/binaries/2.9.2-incuba...
>
> > On Tue, May 17, 2011 at 3:12 PM, Fabio Maulo <fabioma...@gmail.com> wrote:
>
> >> mmmm... I don't think that the nuget version of lucene is something you
> >> can take in account...
> >> The version used in NH-Search (last released) was 2.9.2 compiled from
> >> Lucene sources.
> >> Have you the official 2.9.2 released by Lucene.NET team ?
>
> >> If no, would be better to use the version we have released with the last
> >> NHSearch without the dependency to that nuget package...
> >> The TeamCity server said that there is something wrong with the version in
> >> the trunk.
>
> >> On Tue, May 17, 2011 at 2:00 PM, Dario Quintana <
> >> conta...@darioquintana.com.ar> wrote:
>
> >>> I think is ok now, have a try
> >>>http://nuget.org/List/Packages/NHibernate.Search
>
> >>> <http://nuget.org/List/Packages/NHibernate.Search>The problem was: the
> >>> lucene nuget package lib, and the contrib lib were different. I updated the
> >>> contrib with the nuget lib and now is ok.
>
> >>> You received this message because you are subscribed to the Google Groups
> >>> "NHibernate Contrib - Development Group" group.
> >>> To post to this group, send email to nhc...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> nhcdevs+u...@googlegroups.com.
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/nhcdevs?hl=en.
>
> >> --
> >> Fabio Maulo
>
> > --
> > Fabio Maulo
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "NHibernate Contrib - Development Group" group.
> > To post to this group, send email to nhc...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > nhcdevs+u...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/nhcdevs?hl=en.
>
> --
> Dario Quintana

Fabio Maulo

unread,
May 17, 2011, 6:26:12 PM5/17/11
to nhc...@googlegroups.com
The package have to pass all NHibernate.Search tests.
Reply all
Reply to author
Forward
0 new messages