Using Castle NHibernate Integration Facility with Castle Core 1.2 - nhibernate

I'm working on a personal learning project to help me understand how to use Castle Windsor and Fluent NHibernate. So far written an ASP.NET MVC project which does some basic dependency injection of services into controllers.
My project contains the following references:
Castle.Core 1.2.0.0
Castle.DynamicProxy 2.2.0.0
Castle Windsor 2.1.0.0
NHibernate.Core 2.1.2.4000
FluentNHibernate 1.1.0.694
I managed to get these playing nicely together by taking the NHibernate.ByteCode.Castle.dll from the Active Record project as I found suggested elsewhere on StackOverflow.
Id like to use the NHibernate Integration Facility but I'm having a bit of a dependency nightmare trying to find a compatible version. All of this is still very new to me and I think Ive done well to get as far as I have!
What am I going to have to do in order to add the NHibernate Integration Facility to my project? Does a compatible version exist and if so where can I find it? Alternatively is it possible to compile a version that works with the dependencies Im using?

There is a compatible version, but you must build it yourself as there have been no releases of the library.
Open a command prompt, and given you have installed git:
git clone https://github.com/castleproject/Castle.Facilities.NHibernateIntegration.git
cd Castle.Facilities.NHibernateIntegration
git reset --hard aef2d2ef324071d961474b41fcb312dd48d0e946.
(Resetting to commit aef2d2e gives you the version of the libs you use.)
Now run ClickToBuild.cmd and you'll find the facility assembly in the build folder.
If you don't want to install git you can also download the source from Github for this commit by clicking on the download button at this link:
https://github.com/castleproject/Castle.Facilities.NHibernateIntegration/commit/aef2d2ef324071d961474b41fcb312dd48d0e946

Related

Source code for Nhibernate 3.1.0.4000 is missing in GitHub, where could I find it?

We are using this specific version of Nhibernate in our application. And now we come across a situation where we want to debug an issue through Nhibernate, But I am unable to find source code for this specific version in Nhibernate git.
Source package can be downloaded here
https://sourceforge.net/projects/nhibernate/files/NHibernate/3.1.0.GA/
Other versions (latest at the moment is 5):
https://sourceforge.net/projects/nhibernate/files/NHibernate/

Cocoa ConnectionKit Framework Dependencies

I'd like to use ConnectionKit in a project, but haven't yet been able to compile the framework.
I haven't been able to find a definitive list of external projects that ConnectionKit depends on. I've attempted to include projects that fit my best guess, but nothing has worked so far.
Does anyone know exactly what projects / libraries ConnectionKit requires?
To take my comment and turn it into an answer: it appears that ConnectionKit already includes many of its dependencies by default. However, there are two Git submodules that you're going to have to install for this framework to compile: "libssh2_sftp-Cocoa-wrapper" and "DAVKit".
The easiest way to install them is to cd to the framework directory once you've cloned it, and to run git submodule update --init libssh2_sftp-Cocoa-wrapper DAVKit.

"No endpoint configuration found in scanned assemblies” for copied NServiceBus project

I made my NServiceBus solution and it was all working. I then moved one of the projects to a different solution.
When I run them in that solution I get this error:
No endpoint configuration found in scanned assemblies. This usually happens when NServiceBus fails to load your assembly contaning IConfigureThisEndpoint.
I have a class in the project I am trying to get running that looks like this:
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server
{
}
I fully copied the folder that contained this project when I moved it to the new solution. (So this is the exact same class that is in the original and the original worked perfectly.)
I am not sure what to do, so I did a bit of googling and came up on this question.
Based on the answer there, I have tried this:
Make sure that there is a class that implements IConfigureThisEndpoint
Make sure that only one class implements IConfigureThisEndpoint
Make sure that the NServiceBus libraries I am using are .NET 4 libraries
Make sure that the implementing class is public (see code above)
I don't do any non-default actions with regards to signing so delay-signing should not be an issue
Any ideas what would cause this error (besides what I have tried) would be great!
UPDATE:
I remembered that I had used the Modeler to setup the dependencies in the original project and NuGet to do it in the copied project.
So I went and compared versions. The Modeler based project was using NServiceBus 2.5.0.1496. When I used NuGet to upgrade that to NServiceBus 2.6.0.1505 (what I had in my copied project) I started getting the same error (in my original project that had previously worked just fine).
So I copied the working DLLs into my broken project and it all started working.
So I can only conclude that this is a version issue. Something with how I have set things up (defaults for the Modeler) is not compatible with version 2.6 of NServiceBus.
NuGet does not have history of the same version of NServiceBus as the Modeler tools has. I think this is an error because NServiceBus packages don't reset the build (last) number. And there is a NServiceBus version
2.6.1496,
but not a
2.5.1496
like what comes with the modeler (there is a 2.5.0.1490, but close only counts in horseshoes and hand grenades).
So I am going to have to abandon NuGet for NServiceBus (because I need the exact version that is in the Modeler or I have to figure out why I am getting this error.)
If anyone has a better way to deal with this problem I would LOVE to hear it.
I remembered that I had used the Modeler to setup the dependencies in the original project and NuGet to do it in the copied project.
So I went and compared versions. The Modeler based project was using NServiceBus 2.5.0.1496. When I used NuGet to upgrade that to NServiceBus 2.6.0.1505 (what I had in my copied project) I started getting the same error (in my original project that had previously worked just fine).
So I copied the working DLLs into my broken project and it all started working.
So I can only conclude that this is a version issue. Something with how I have set things up (defaults for the Modeler) is not compatible with version 2.6 of NServiceBus.
NuGet does not have history of the same version of NServiceBus as the Modeler tools has. I think this is an error because NServiceBus packages don't reset the build (last) number. And there is a NServiceBus version
2.6.1496, but not a
2.5.1496
like what comes with the modeler (there is a 2.5.0.1490, but close only counts in horseshoes and hand grenades).
So I am going to have to abandon NuGet for NServiceBus (because I need the exact version that is in the Modeler or I have to figure out why I am getting this error.)

Where can I download the Castle Windsor WcfIntegration Facilities dll?

I would like to integrate Castle Windsor into a WCF project and have read that you can hook it up using the WcfIntegration facility but I am unable to find where to download the dll.
Can anyone help?
WCF Facility did not have an official release yet, as there are still few rough edges and issues we want to address before making the release. Your best option now is to either get the source using link provided in the other answer, or to get it from Horn website. The latter option is compiled against trunk version of other projects, so if you want to use released version of Windsor (2.1.1) you have to compile it yourself.
It's in NuGet now with all of the other 3.0 beta stuff.
Install-Package Castle.WcfIntegrationFacility
http://nuget.org/List/Packages/Castle.WcfIntegrationFacility
Update
Just to follow up, The one in nuget is targeted for Windsor 3.0 beta 1. I found out the hard way that some of the other facilities do not yet support 3.0 beta 1. Specifically, if you're using the NHibernate or AutoTx facilities, you need to stick with a WCF factility compiled for Windsor 2. The latest one seems to be the Jul 29 2011 commit from the git repository, available here.
This will have to suffice until the 3.0 versions of the other facilities are updated. It's already being discussed on the castle users group list.
https://svn.castleproject.org/svn/castle/Facilities/Wcf/trunk from http://www.castleproject.org/subversion.html you have to download the source and build it yourself apperently.

Latest Binary builds of FLuentNhibernate + Nhibernate + Linq for NHibernate

do people build there own versions of all this? or is there a place to get all this prebuilt?
I got the latest FluentNhibernate which has NHibernate but no Linq.... but I don't really want to setup a ruby rake build system etc etc unless I really really have to! Prefer to just get all the binaries I need.
Here is a build:
http://www.dennisdoomen.net/2009/07/nhibernate-210-ga-with-linq-and-fluent.html
I build my own versions, because I don't want to be forced to upgrade all the dependencies of fluent when I just want to upgrade fluentnhibernate.
Installing ruby is downloading and clicking one exe and the rake installer is included in fluent nhibernate repository. This does not require you to read any manual or have any ruby knowledge. It should not take you more than 2 minutes.
Many .net projects use rake instead of nant or msbuild because the syntax of the ruby language is easier to read than xml.
You can download the binaries you want at the buildserver used by fluent nhibernate