Hi Rocky
We have designed our WPF application using CSLA 4.5.31 using the MobileProxy available for target framework .NET 4.0 based on knowing it will be used on XP machines that does not support .NET 4.5.
During testing this all tested fine until actual testing was done on a XP machine. We then tested this on a Windows 7 machine and works until we uninstall .NET 4.5 where after we get the same error.
We have gone so far to change ProjectTracker's target framework to .NET 4.0 with the same results and hopeful testing done with the latest CSLA version 4.5.40 also had no luck.
We get the following error:
System.Runtime.Serialization.InvalidDataContractException: Type 'System.Threading.Tasks.Task`1[Csla.WcfPortal.WcfResponse]' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
at Csla.DataPortal`1.Fetch(Type objectType, Object criteria)
at Csla.DataPortal`1.Fetch(Object criteria)
at Csla.DataPortal.Fetch[T](Object criteria)
at ProjectTracker.Library.Security.PTIdentity.GetPTIdentity(String username, String password) in c:\Projects\CSLA4540\Samples\NET\cs\ProjectTracker\ProjectTracker.Library\Security\PTIdentity.cs:
There was a related issue http://forums.lhotka.net/forums/p/11585/53704.aspx#53704 but it was related to WCF and it seemed that the problem was resolved in the framework rather than how it was implemented.
Your help and guidance regarding this issue will greatly be appreciated.
Thank you
Jannie