The Remote Server returned an error: NotFound ; Silverlight ; ViewModel ; CSLA.net 4.1

The Remote Server returned an error: NotFound ; Silverlight ; ViewModel ; CSLA.net 4.1

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


JJLoubser posted on Wednesday, August 31, 2011

when we do a BeginRefresh("StaticFindMethod") it always work mulit times but not the BeginRefresh("StaticUpdateMethod")

 

 public static void StaticUpdateMethod(ClosingRegisterER model, EventHandler<DataPortalResult<ClosingRegisterER>> callback)
        {
            var dp = new DataPortal<ClosingRegisterER>();
            dp.UpdateCompleted += callback;
            dp.BeginUpdate(model);

        }

 

it returns The Remote Server returned an error: NotFound after the second call, 1st call working, why failling at second call and after?

server signature:

 

[Transactional(TransactionalTypes.TransactionScope)]
        protected override void DataPortal_Update()
        {
            using (var ctx = ConnectionManager<SqlConnection>.GetManager("StaffSenseDb"))
            {


                FieldManager.UpdateChildren(this);

            }
        }

 

Copyright (c) Marimer LLC