Thanks, Craig.  I've been messing with it some more myself.  If I just
use the web.config to setup the AR settings then it works fine.
That's really not the approach I like though.

On Wed, Oct 29, 2008 at 3:54 PM, Craig Neuwirt <[EMAIL PROTECTED]> wrote:
> Hmm. I am doing a similar thing currently with MS MVC and AR using Binsor.
> I override the config name, but I am sure that not it.
> I'll look further.
>
> On Wed, Oct 29, 2008 at 3:39 PM, Nathan Stott <[EMAIL PROTECTED]> wrote:
>>
>> No, it's not needed.  It auto loads the windsor.boo without including
>> that setting.
>>
>> I can look at the container and see the facilities registered.
>>
>> On Wed, Oct 29, 2008 at 3:12 PM, Craig Neuwirt <[EMAIL PROTECTED]> wrote:
>> > Did you add the WindsorConfig setting in web.config to point to the boo
>> > file?
>> >
>> > On Wed, Oct 29, 2008 at 2:13 PM, Nathan Stott <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I am having Global.asax inherit UnitOfWorkApplication.  The
>> >> UnitOfWork.Start() call is where the error is raised.
>> >>
>> >> On Wed, Oct 29, 2008 at 11:33 AM, Craig Neuwirt <[EMAIL PROTECTED]>
>> >> wrote:
>> >> > How are you initializing the container in your global
>> >> >
>> >> > On Tue, Oct 28, 2008 at 6:31 PM, Nathan Stott <[EMAIL PROTECTED]>
>> >> > wrote:
>> >> >>
>> >> >> I'm having trouble setting up my AR for MS MVC app using binsor.
>> >> >>  I'm
>> >> >> building from Rhino Trunk.  Please take a look.
>> >> >>
>> >> >> I'm getting this error:
>> >> >> Could not obtain configuration from the AppDomain config file.
>> >> >> Sorry,
>> >> >> but you have to fill the configuration or provide a
>> >> >> IConfigurationSource instance yourself.
>> >> >>
>> >> >> Here is my windsor:
>> >> >>
>> >> >> import System.Reflection
>> >> >> import System.Web.Mvc
>> >> >> import Rhino.Commons from Rhino.Commons
>> >> >> import Rhino.Commons from Rhino.Commons.NHibernate
>> >> >> import Rhino.Commons.Facilities from Rhino.Commons.ActiveRecord
>> >> >> import Castle.Facilities.ActiveRecordIntegration from
>> >> >> Castle.Facilities.ActiveRecordIntegration
>> >> >> import Castle.Facilities.FactorySupport from Castle.MicroKernel
>> >> >> import Castle.Facilities.Startable from Castle.MicroKernel
>> >> >> import Castle.Facilities.EventWiring from Castle.MicroKernel
>> >> >> import WB.ProjectManagement.NHRepositories
>> >> >> import WB.ProjectManagementBL
>> >> >> import WB.ProjectManagementData
>> >> >>
>> >> >> machineName = System.Environment.MachineName
>> >> >>
>> >> >> facility ActiveRecordFacility:
>> >> >>        configuration:
>> >> >>                @isWeb = true, isDebug = true
>> >> >>                assemblies = [
>> >> >> Assembly.Load("WB.ProjectManagementData")
>> >> >> ]
>> >> >>                config(keyvalues, item: add):
>> >> >>                        show_sql = true
>> >> >>                        command_timeout = 5000
>> >> >>                        cache.foo.use_query_cache = false
>> >> >>                        dialect =
>> >> >> 'NHibernate.Dialect.MsSql2005Dialect'
>> >> >>                        connection.provider =
>> >> >> 'NHibernate.Connection.DriverConnectionProvider'
>> >> >>                        connection.driver_class =
>> >> >> 'NHibernate.Driver.SqlClientDriver'
>> >> >>                        connection.connection_string = 'Data
>> >> >> Source=.;Integrated
>> >> >> Security=true;Database=ProjectManagement'
>> >> >>
>> >> >> facility ActiveRecordUnitOfWorkFacility:
>> >> >>        assembly = "WB.ProjectManagementData"
>> >> >>
>> >> >> for type in Assembly.Load('WB.ProjectManagement.Web').GetTypes():
>> >> >>        if typeof(IController).IsAssignableFrom(type):
>> >> >>                component type.Name.ToLower(), type:
>> >> >>                        lifestyle Transient
>> >> >>
>> >> >>
>> >> >>
>> >> >> ---------------------------------------------
>> >> >>
>> >> >> Am I missing something?  Been struggling with it for a while and
>> >> >> can't
>> >> >> seem to get it to see my configuration under the facility.  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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to