Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Castle.TypedFactory.DefaultInterfaceFactoryComponentSelector could not be resolved

I am following example by José F. Romaniello on session management with NHibernate. It's a very good article, however I'm struggling with it having very little experience with NHibernate, Windsor and MVC.

I am trying to re-create NHibernateInstaller, however encountering the following error: Component Castle.TypedFactory.DefaultInterfaceFactoryComponentSelector could not be resolved. Make sure you didn't misspell the name, and that component is registered.

In the sample project provided this error does not crop up, even though the installer is identical and Google does not come up with any results (which is very unusual). What causes this and how can it be avoided?

like image 207
Shagglez Avatar asked Jun 16 '11 16:06

Shagglez


1 Answers

it seems a problem with the TypedFactoryFacility... are you doing this?

kernel.AddFacility<TypedFactoryFacility>();

before running all the installers?

like image 143
José F. Romaniello Avatar answered Dec 05 '22 00:12

José F. Romaniello