Bhumip, What version of Castle are you using (RC3 or trunk)? Also, you say it works on your local machine, how about in another developer machine?
John On May 26, 9:38 pm, Bhumip <[email protected]> wrote: > Hi John, > > Following is the list of dlls in my bin folder. > > Castle.ActiveRecord.dll > > Castle.Components.Validator.dll > > Castle.Core.dll > > Castle.DynamicProxy.dll > > Iesi.Collections.dll > > log4net.dll > > NHibernate.dll > > Also Following is the ActiveRecordSection in web.config file > > ----------------------------------------------------------- > <configSections> > <section name="activeRecord" > type="Castle.ActiveRecord.Framework.Config.ActiveRecordSectionHandler,Castle.ActiveRecord"/ > > </configSections> > <activeRecord isWeb="true"> > <config> > <add key="hibernate.connection.provider" > value="NHibernate.Connection.DriverConnectionProvider"/> > <add key="hibernate.dialect" > value="NHibernate.Dialect.OracleDialect"/> > <add key="hibernate.connection.driver_class" > value="NHibernate.Driver.OracleClientDriver"></add> > <!--<add key="hibernate.connection.connection_string" > value="Data Source=ora11g;User ID=hrd1;Password=test123;"/>--> > <add key="hibernate.connection.connection_string" value="Data > Source=ora11g;User ID=phrd;Password=testtest;"/> > </config> > > </activeRecord> > <connectionStrings> > > -------------------------------------------------------------------------------------------- > > On May 26, 4:31 pm, John Simons <[email protected]> wrote: > > > Are you sure you've deployed all the assemblies including dependency > > assemblies? > > > John > > > On May 26, 7:58 pm, Bhumip <[email protected]> wrote: > > > > Hi John, > > > > i have initialized in Global.asax and following is the code. > > > > void Application_Start(object sender, EventArgs e) > > > { > > > Castle.ActiveRecord.Framework.IConfigurationSource source = > > > System.Configuration.ConfigurationManager.GetSection("activeRecord") > > > as Castle.ActiveRecord.Framework.IConfigurationSource; > > > System.Reflection.Assembly modelAssembly = > > > System.Reflection.Assembly.Load("ManilaPayroll.BAL"); > > > Castle.ActiveRecord.ActiveRecordStarter.Initialize > > > (modelAssembly, source); > > > > } > > > > Some how it is work on my local machine it is not working on my > > > production machine where we have IIS 6.0 as web server. > > > > Regards, > > > > Bhumip > > > > On May 26, 2:20 pm, John Simons <[email protected]> wrote: > > > > > Did u call ActiveRecordStarter.Initialize() as the first thing? > > > > > ________________________________ > > > > From: Bhumip <[email protected]> > > > > To: Castle Project Users <[email protected]> > > > > Sent: Tuesday, 26 May, 2009 2:57:38 PM > > > > Subject: You have accessed an ActiveRecord class that wasn't properly > > > > initialized. > > > > > I am working VS 2005 and .NET 2.0 and database Oracle 11g > > > > > Active Record is working on my local system when i deployed the system > > > > on Server. > > > > > I have added [ActiveRecord] on top of the class but still error is > > > > coming. > > > > > Following ERROR is coming > > > > > You have accessed an ActiveRecord class that wasn't properly > > > > initialized. The only explanation is that the call to > > > > ActiveRecordStarter.Initialize() didn't include > > > > > Please help me out i have deadline on Friday. My work is done but i > > > > can not deploy on the Production server because of following ERROR. > > > > > Need a Holiday? Win a $10,000 Holiday of your choice. Enter > > > > now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1f... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
