I'm using #Sharp 3.01 and I'm trying to implement Nhibernate Aspnet Identity.
I have some projects working fine but those use #Sharp 2.x ...
When I debug the app I got this error message:
Can't create component 'userStore' as it has dependencies to be satisfied.
'userStore' is waiting for the following dependencies:
- Service 'NHibernate.ISession' which was not registered.
The userStore component is called in the Install method for Identity Installer:
---------------------------------------------------------------------------
public class IdentityInstaller : IWindsorInstaller
{
#region Public Methods and Operators
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Component.For(typeof(IUserStore<>))
.ImplementedBy(typeof(UserStore<>))
.Named("userStore")
.LifestylePerWebRequest());
container.Register(
Component.For(typeof(IRoleStore<>))
.ImplementedBy(typeof(RoleStore<>))
.Named("roleStore")
.LifestylePerWebRequest());
container.Register(
Component.For(typeof(UserManager<>))
.ImplementedBy(typeof(UserManager<>))
.Named("userManager")
.LifestylePerWebRequest());
}
#endregion
}
--------------------------------------------------
This kind of error is new for me. Someone please give some advice about this.
Regards