Using WCFPortal: It doesn't inserts a child object. SlPortal, HttpProxy instead yes

Using WCFPortal: It doesn't inserts a child object. SlPortal, HttpProxy instead yes

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


RolandoTonin posted on Monday, July 14, 2014

Hy

I'm try to build a multi UI n-tiers sofware based on CSLA 4.5.600. I have a root object with a child list of child-objects. My solution is as follow:

- a business library based on recently "Shared" project concept built on Visual Studio 2013 u2 

- a WCFHost localhost server with WCFPortal.svc and SlPortal.svc

- a MVC5AppServer localhost server with HttpProxy

- client UI: WPF, Wp8, Universal App (WinRT and WP8.1)

This is a test solution before to start a very important project based on above configuration (maybe Azure also server option) that will start in the next months.

Everything of above work perfectly except when in WPF Client i insert a new child object. Probably, the new object is not serialized on server. In fact the root object on client side IsValid,it is IsSavable and the child list contains the new object but when I put a breakpoint on DataPortal_Update(), Server side (WCFHost), the root object is not dirty and child list don't contains the new object. Instead, when I tried to Update and Delete Child Objects these work perfectly. I have this problem only on WPF (CSLA settings are in App.config file) - WCFPortal.svc. WP8Client-SlPortal.svc work fine. Also Universal App (WinRT 8.1 and WP8.1) with MVC5AppServer, they work as I expected.

What can I try to discover where there is a bug on my solution?

Regards, Rolando 

Copyright (c) Marimer LLC