Save operation works fine in localproxy, not with WCF Data Portal (NetTcpBinding)

Save operation works fine in localproxy, not with WCF Data Portal (NetTcpBinding)

Old forum URL:

MichelRenaud posted on Wednesday, July 21, 2010


We've run into a weird problem.  We've been developing with a local proxy, and have now moved the business library to a server for testing, using the WCF Data Portal, NetTcp Binding.

For one of the objects, the value for IsDirty does not seem to be propagated back to the client - i.e., after a (successful) save, on return the object is still marked as dirty.  I modified the server-side code to send me an e-mail with various values after the save, and IsDirty is set to false, as expected.  However when I trace on the client side, IsDirty is true.  So somehow it's as if it's not being sent back to the client (if that makes any sense...) This did not happen when running locally.

So far I haven't seen anything out of the ordinary, but I'm still relatively new at this.  Just wondering if anyone here might have an idea as to what may be causing this?

(This is a BusinessBase object.)


Marjon1 replied on Wednesday, July 21, 2010

What does your code when doing the actually calling save on the object look like?

The most common occurance of this in type of issue in the past has been where you have code like this:


instead of 

Object = Object.Save()

MichelRenaud replied on Wednesday, July 21, 2010

Hi Marjon,

That's exactly it - I knew it had to be something simple since the business object code itself looked fine.

Thanks a lot for your help!  Now I'll go finish cleaning up my mess. :)


Copyright (c) Marimer LLC