Hi All
It's been a while since I read the book and i'm perhaps being a bit lazy here posting my question before I research the answer. A also have to admit I haven't kept upto date since the version 2.0 book was released.
But, I am receiving the following error whilst trying to convert a ReadOnlyListBase to a DataSet:
My Class is declared as follows:
[
Serializable] public class EnquiryList : ReadOnlyListBase<EnquiryList, EnquiryItem>{
..Code omoitted...
}
I have call my factory method to populate my list:
public static EnquiryList GetEnquiryList(int LocationID, int ExecutiveID, int CommunicationTypeID, int EnquirySourcID,and have validated the list is populated.
My error occurs when I call the following method from my UI:
DataSet Ds = new DataSet();Csla.Data.
DataMapper.Map(list, Ds, supress);The error I get (at runtime) is:
System.ArgumentException was unhandled by user code
Message="Property copy failed (RaiseListChangedEvents)"
Source="Csla"
StackTrace:
at Csla.Data.DataMapper.Map(Object source, Object target, Boolean suppressExceptions, String[] ignoreList)
at Csla.Data.DataMapper.Map(Object source, Object target, String[] ignoreList)
at ShowroomLogModule_ShowroomLogEnquiryView.PopulateGrid() in c:\$Crypt\Development\LoyaltyLogistix\Automotive\Autolog\Autolog.WebUI\ShowroomLogModule\ShowroomLogEnquiryView.aspx.cs:line 512
at ShowroomLogModule_ShowroomLogEnquiryView.OnInit(EventArgs e) in c:\$Crypt\Development\LoyaltyLogistix\Automotive\Autolog\Autolog.WebUI\ShowroomLogModule\ShowroomLogEnquiryView.aspx.cs:line 76
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I am using version 2.1 of the framework.
Any ideas please?
Smeat
Copyright (c) Marimer LLC