Hi Flakron > Is there a way to destroy the session of the > Gallery so I can reinitialize?
basically ActiveRecordStarter.ResetInitializationFlags but that isn't the way you want to go what you need is to defer the responsability to register activerecord to somewhere else, probably another assembly, and implement a way to enlist all active record model classes you want to support during initialization, this should occur once, regardless of how many separate models / assemblies you are using. It could be done via reflection or via configuration. Via configuration it would look llke the ActiveRecordFacility implementation. Via reflection, you could itterate over types in loaded assemblies to find classes with ActiveRecord attribute or look for another strategy that's fit your needs. I've no knowledge of sharepoint myself, but I'm pretty sure theses are the way to go to configure ActiveRecord properly. On Mar 8, 4:24 am, Flakron Bytyqi <[email protected]> wrote: > Hi > > I have been developing with Castle ActiveRecord for a while. After I > got some assignments to develop for the Sharepoint platform, I decided > to use Castle also. I've used User Controls (webparts weren't an > option for me). Yet I'm running into e problem. So, if I have 2 > projects eg. Marketing and Gallery, if any of them loads first, take > Gallery, then Marketing won't load and will display this message > > " > You have accessed an ActiveRecord class that wasn't properly > initialized. The only explanation is that the call to > ActiveRecordStarter.Initialize() didn't include > KPE.Marketing.Configuration class > " > > I've initialized it (in the code), but for some reason it won't > initialize next time. Is there a way to destroy the session of the > Gallery so I can reinitialize? > > Cheers > Flakron -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en.
