Hi,
We've been working fine with LLBL for about a year now. We use version 2.0.0.0 Final.
We build our ASP.Net application on our test servers before uploading to our live server.
We use LLBL to build our Data layer completley and the data layer project (DAL) it creates is a project within our solution.
We have an issue where everything works fine on our testing server but not on the live server.
The DAL compiles OK and has been deployed to live server but when we try to access a specific collection using the GetMulti method it generates an exception in your code.
All other collection seem to be OK.
The stack trace is show below:
Server Error in '/' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Intersalon.DAL.EntityClasses.SalonSmsSettingsEntity..cctor() +42
[TypeInitializationException: The type initializer for 'Intersalon.DAL.EntityClasses.SalonSmsSettingsEntity' threw an exception.]
Intersalon.DAL.EntityClasses.SalonSmsSettingsEntity..ctor() +0
Intersalon.DAL.FactoryClasses.SalonSmsSettingsEntityFactory.Create() +45
Intersalon.DAL.FactoryClasses.SalonSmsSettingsEntityFactory.Create(IEntityFields fields) +37
SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.ExecuteMultiRowRetrievalQuery(IRetrievalQuery queryToExecute, ITransaction containingTransaction, IEntityCollection collectionToFill, Boolean allowDuplicates, IEntityFields fieldsUsedForQuery) +1357
SD.LLBLGen.Pro.ORMSupportClasses.DaoBase.PerformGetMultiAction(ITransaction containingTransaction, IEntityCollection collectionToFill, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IPredicate selectFilter, IRelationCollection relations, Int32 pageNumber, Int32 pageSize) +270
SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase1.GetMulti(IPredicate selectFilter, Int64 maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relations, Int32 pageNumber, Int32 pageSize) +119
SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase
1.GetMulti(IPredicate selectFilter) +29
CMSDesk_Tools_Salon_Appointment_SMS.LoadData() +155
CMSDesk_Tools_Salon_Appointment_SMS.Page_Load(Object sender, EventArgs e) +124
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
CMSPage.OnLoad(EventArgs e) +9
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436