CSLA Light - DataPortal.Fetch

CSLA Light - DataPortal.Fetch

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


CampbellCM posted on Tuesday, April 07, 2009

I'm in the process of wiring up a new CSLA Light project and I'm getting the following error:

DataPortal.Fetch failed (Index was outside the bounds of the array.)

I've been stepping through the code and I can see that we're hitting the BeginFetch and FetchCompleted code but I can also see that we never hit the server code for the BO.

I've triple checked everything in the project but I must still be missing something.

Any ideas?

CampbellCM replied on Tuesday, April 07, 2009

Never mind.  I checked again and I had defined the wrong Fetch methods in the ROLB.  I had Child_Fetch instead of DataPortal_Fetch.

All I had to do was post and look foolish. ;)

Copyright (c) Marimer LLC