Exception Occured Because of No Factory Methods

Exception Occured Because of No Factory Methods

Old forum URL: forums.lhotka.net/forums/t/6548.aspx


Programmer1987 posted on Tuesday, March 03, 2009

this exception occurs 19 times on loading the window because i didn't assign factory method to cslaDataprovider

 

System.InvalidOperationException: No such factory method:

at Csla.Wpf.CslaDataProvider.DoQuery(Object state)

 

My Question is  : I don't want to assign factory method because I Assign ObjectInstance is that Enough

for the csladataprovider to work correctly

 

if yes this exception occurs ???

 

RockfordLhotka replied on Tuesday, March 03, 2009

Set IsInitialLoadEnabled to False so the data provider doesn't try to load data as the form is loaded.

Programmer1987 replied on Tuesday, March 03, 2009

thanks a lot Mr.Lhotka

this is the very first project using CSLA

so my Question so ....

thanks again

Copyright (c) Marimer LLC