C# – Fluent NHibernate with Castle Windsor 2.0

ccastle-windsorexceptionnhibernate

It now makes sense that the versions aren't right.

I know I am using Castle Windsor 2.0 and I would like to use NHibernate with Fluent NHibernate – what versions do I need of these two?

Edit Ok, I think I got it wired up. I'm still having a version issue.
I now get this error when using the direct download from their site. The only library at 1.0.3 is the NHibernateFacility.

{"Could not load file or assembly
'Castle.Core, Version=1.0.3.0,
Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' or
one of its dependencies. The located
assembly's manifest definition does
not match the assembly reference.
(Exception from HRESULT:
0x80131040)":"Castle.Core,
Version=1.0.3.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc"}

Old Problem

Why would I be getting this?

Method '{MethodName}' in type 'Class'
from assembly '{ClassLibrary},
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=' does not have an
implementation.

It compiles just fine and it is implemented. I don't even call that the class yet.

I am using IoC – Castle Windsor with Fluent NHibernate.

The interface I have to implement is Castle.Facilities.NHibernateIntegration.Internal.IConfigurationBuilder

Best Answer

There's probably a versioning conflict. Try getting the Castle and NH assemblies from the Castle build server.