No problem although I'm not certain how to do this with multiple databases.
Sincerely,
Chris Sims

Success is never final. Failure is never fatal. It is courage that counts. -
Winston Churchill


On Mon, Aug 17, 2009 at 3:09 PM, Markus Zywitza <[email protected]>wrote:

> Hm, I'm sure there is a passing test for this. As a workaround, would you
> mind to use a programmatic configuration via InPlaceConfigurationSource
> until I have time to take a closer look?
>
>
> -Markus
>
> 2009/8/17 Chris Sims <[email protected]>
>
>> Still get the same results. Scheduler.Core.AhtActiveRecordBase`1,
>> Scheduler.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null was
>> the qualified name. I replaced my secondary config type with:
>>     <config type="Scheduler.Core.AhtActiveRecordBase`1, Scheduler.Core,
>> Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
>>       <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=nhs-aht;Initial Catalog=ltcdb;User
>> Id=AHTCustomProgramming;Password=AHT Custom Programming" />
>>       <add value="NHibernate.ByteCode.Castle.ProxyFactoryFactory,
>> NHibernate.ByteCode.Castle" key="proxyfactory.factory_class" />
>>       <add key="connection.isolation" value="ReadUncommitted" />
>>     </config>
>>
>> Still have a key not found error.
>> Sincerely,
>> Chris Sims
>>
>> Success is never final. Failure is never fatal. It is courage that counts.
>> - Winston Churchill
>>
>>
>> On Mon, Aug 17, 2009 at 1:21 PM, Markus Zywitza <[email protected]
>> > wrote:
>>
>>> try
>>>
>>> Console.Out.WriteLine(typeof(AhtActiveRecordBase<>).AssemblyQualifiedName);
>>>
>>> and c+p the result into your config.
>>>
>>> -Markus
>>>
>>> 2009/8/17 Chris Sims <[email protected]>
>>>
>>>
>>>> If the class is not being configured correctly in the XML what do I
>>>> need to do?
>>>>
>>>> On Aug 14, 1:55 pm, Chris Sims <[email protected]> wrote:
>>>> > When I do this, I get the KeyNotFoundException on that statement. I am
>>>> > assuming this means its not creating the configuration but I don't
>>>> know how
>>>> > to handle this.
>>>> > Sincerely,
>>>> > Chris Sims
>>>> >
>>>> > Success is never final. Failure is never fatal. It is courage that
>>>> counts. -
>>>> > Winston Churchill
>>>> >
>>>> > On Thu, Aug 13, 2009 at 3:06 AM, Markus Zywitza <
>>>> [email protected]>wrote:
>>>> >
>>>> >
>>>> >
>>>> > > add
>>>> > > var factory =
>>>> > >
>>>> ActiveRecordMediator.GetSessionFactoryHolder().GetSessionFactory(typeof(Aht
>>>> ActiveRecordBase<>));
>>>> >
>>>> > > somewhere after the initialization wit a break point. Debug the
>>>> application
>>>> > > and ensure that factory is not null.
>>>> > > -Markus
>>>> > > 2009/8/13 Chris Sims <[email protected]>
>>>> >
>>>> > > Not certain how to do that?
>>>> > >> Sincerely,
>>>> > >> Chris Sims
>>>> >
>>>> > >> Success is never final. Failure is never fatal. It is courage that
>>>> counts.
>>>> > >> - Winston Churchill
>>>> >
>>>> > >> On Wed, Aug 12, 2009 at 11:22 PM, Markus Zywitza <
>>>> > >> [email protected]> wrote:
>>>> >
>>>> > >>> Please inspect
>>>> >
>>>> > >>>
>>>> ActiveRecordMediator.GetSessionFactoryHolder().GetSessionFactory(typeof(Aht
>>>> ActiveRecordBase<>))
>>>> >
>>>> > >>> to ensure that the class was configured correctly in the XML.
>>>> >
>>>> > >>> -Markus
>>>> >
>>>> > >>> 2009/8/12 Chris Sims <[email protected]>
>>>> >
>>>> > >>>> It is on there, I commented out some of the includes for brevity
>>>> as
>>>> > >>>> there are quiet a few classes to init. I get the same error when
>>>> I init the
>>>> > >>>> whole assembly.
>>>> >
>>>> > >>>>  On Aug 12, 2009 11:47 AM, "Markus Zywitza" <
>>>> [email protected]>
>>>> > >>>> wrote:
>>>> >
>>>> > >>>> You must include Facility in the
>>>> ActiveRecordStarter.Initialize(...)
>>>> >
>>>> > >>>> -Markus
>>>> >
>>>> > >>>>  2009/8/12 Chris Sims <[email protected]>
>>>> >
>>>> > >>>> > > > I am writing a program that stores data in one database and
>>>> > >>>> references > a medical records sy...
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to