Hello Mohammed, you may try either of theses solutions:

- use / register nhibernate facility for windsor, which will handle
resolution for ISession

- register ISession as a factory method in the container like
described here (also need ISessionFactory to be registered):
http://groups.google.com/group/rhino-tools-dev/msg/27411648222a4a13


On Sep 28, 1:59 pm, Mohammed Ali <mohammedali....@gmail.com> wrote:
> I compiled and added reference of newly created Rhino.security.dll. Now It
> is showing another error :
>
> Castle.MicroKernel.Handlers.HandlerException was unhandled by user code
>   Message="Can't create component
> 'Rhino.Security.Services.AuthorizationRepository' as it has dependencies to
> be satisfied. \r\nRhino.Security.Services.AuthorizationRepository is waiting
> for the following dependencies: \r\n\r\nServices: \r\n- NHibernate.ISession
> which was not registered. \r\n"
>   Source="Castle.MicroKernel"
>
>
>
> On Sun, Sep 27, 2009 at 3:32 PM, Ayende Rahien <aye...@ayende.com> wrote:
> > Okay,
> > That explains this.
> > The current version is here:
> >http://github.com/ayende/rhino-security
>
> > Please not that some changes were made to make it easier to integrate with
> > other stacks, but it souldn't affect your usage.
>
> > On Sun, Sep 27, 2009 at 2:27 PM, Mohammed Ali 
> > <mohammedali....@gmail.com>wrote:
>
> >> svn revision 2139
>
> >> On Sun, Sep 27, 2009 at 3:21 PM, Ayende Rahien <aye...@ayende.com> wrote:
>
> >>> I am sorry, what build / svn revision / git commit
>
> >>> On Sun, Sep 27, 2009 at 1:54 PM, Mohammed Ali <mohammedali....@gmail.com
> >>> > wrote:
>
> >>>> Rhino security  version 2.0.0.0
>
> >>>> On Sun, Sep 27, 2009 at 2:51 PM, Ayende Rahien <aye...@ayende.com>wrote:
>
> >>>>> Of Rhino Security
>
> >>>>> On Sun, Sep 27, 2009 at 1:49 PM, Mohammed Ali <
> >>>>> mohammedali....@gmail.com> wrote:
>
> >>>>>> Activerecord version 1.0.3.0
>
> >>>>>> On Sun, Sep 27, 2009 at 2:42 PM, Ayende Rahien 
> >>>>>> <aye...@ayende.com>wrote:
>
> >>>>>>> which version are you using?
>
> >>>>>>> On Sun, Sep 27, 2009 at 1:35 PM, Mohammed Ali <
> >>>>>>> mohammedali....@gmail.com> wrote:
>
> >>>>>>>> I  mapped but still also same result.Here is the details of
> >>>>>>>> activerecord configuration.Is it correct ?
>
> >>>>>>>> <activerecord>
> >>>>>>>>     <config>
> >>>>>>>>       <add key="connection.driver_class"
> >>>>>>>> value="NHibernate.Driver.SqlClientDriver" />
> >>>>>>>>       <add key="dialect"
> >>>>>>>> value="NHibernate.Dialect.MsSql2005Dialect" />
> >>>>>>>>       <add key="connection.provider"
> >>>>>>>> value="NHibernate.Connection.DriverConnectionProvider" />
> >>>>>>>>       <add key="connection.connection_string" value="Data
> >>>>>>>> Source=.\SQLExpress;Initial Catalog=IRS;Integrated Security=SSPI" />
> >>>>>>>>       <add key="proxyfactory.factory_class"
> >>>>>>>> value="NHibernate.ByteCode.Castle.ProxyFactoryFactory,
> >>>>>>>> NHibernate.ByteCode.Castle" />
> >>>>>>>>       <add key="show_sql" value="true"/>
> >>>>>>>>       <mapping assembly="DomainModel"/>
> >>>>>>>>       <mapping assembly="Rhino.Security"/>
> >>>>>>>>        </config>
> >>>>>>>>   </activerecord>
>
> >>>>>>>> On Sun, Sep 27, 2009 at 12:52 PM, Ayende Rahien 
> >>>>>>>> <aye...@ayende.com>wrote:
>
> >>>>>>>>> You need to add the Rhino.Security assembly to the mapping
>
> >>>>>>>>> On Sun, Sep 27, 2009 at 7:09 AM, Mohammed Ali <
> >>>>>>>>> mohammedali....@gmail.com> wrote:
>
> >>>>>>>>>> I tried to implement rhino security in my new project .When
> >>>>>>>>>> creating a
> >>>>>>>>>> new usergroup , I am getting error  'No persister for:
> >>>>>>>>>> Rhino.Security.Model.UsersGroup'.Here is the widsor.boo contents
> >>>>>>>>>> which
> >>>>>>>>>> I used.
>
> >>>>>>>>>> import System.Reflection
> >>>>>>>>>> import DomainModel
> >>>>>>>>>> import Castle.Components.Validator
> >>>>>>>>>> import Rhino.Security;
> >>>>>>>>>> import Rhino.Security.ActiveRecord;
>
> >>>>>>>>>> # load AR models from assemblies
> >>>>>>>>>> activeRecordAssemblies = (
> >>>>>>>>>>        Assembly.Load("DomainModel"),
> >>>>>>>>>>        typeof(Users).Assembly,
> >>>>>>>>>>         )
>
> >>>>>>>>>> #facility RhinoTransactionFacility
>
> >>>>>>>>>> facility RhinoSecurityFacility:
> >>>>>>>>>>        securityTableStructure = SecurityTableStructure.Prefix
> >>>>>>>>>>        userType = Users
>
> >>>>>>>>>> component INHibernateInitializationAware,
> >>>>>>>>>> RegisterRhinoSecurityModels
>
> >>>>>>>>>> Component( "active_record_repository", IRepository, ARRepository)
>
> >>>>>>>>>> Component( "active_record_unit_of_work",
> >>>>>>>>>>        IUnitOfWorkFactory,
> >>>>>>>>>>        ActiveRecordUnitOfWorkFactory,
> >>>>>>>>>>        assemblies: activeRecordAssemblies)
>
> >>>>>>>>>> Can anybody help ?.
>
> >>>>>>>>>> Thanks in advance..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to rhino-tools-dev@googlegroups.com
To unsubscribe from this group, send email to 
rhino-tools-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to