WCFDataPortal Error

WCFDataPortal Error

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


Joffies posted on Friday, November 06, 2009

Hi I am using a windows forms application and just switched my application over to use the following channel.

add key="CslaDataPortalProxy" value="Csla.DataPortalClient.WcfProxy, Csla

When trying to do any updates through my Business object i get the following error.

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://ws.lhotka.net/WcfDataPortal:request. The InnerException message was 'Error in line 1 position 12277. 'EndElement' '_object' from namespace 'http://schemas.datacontract.org/2004/07/Csla.Server.Hosts.WcfChannel' is not expected. Expecting element 'user'.'. Please see InnerException for more details.

When using the direct data portal method my updates work fine.

I am using CSLA Windows 3.8.0 on Windows 7.

Any ideas would be appreciated.

Thanks

John

RockfordLhotka replied on Friday, November 06, 2009

What channel were you using before?

Can you successfully do a Clone() of your object graph?

It sounds like the message was not successfully or completely delivered over the wire. Either it was corrupted somehow, or truncated.

There are data and serialization size limits in WCF, and you may have to raise those limits through client and server configuration. The FAQ has pointers to some information around WCF configuration

http://www.lhotka.net/cslanet/faq/DataPortalFaq.ashx

 

Copyright (c) Marimer LLC