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
-~----------~----~----~----~------~----~------~--~---

Reply via email to