I have "borrowed" the design time model from the example that IdeaBlade put out called "ClientUI_DevForceIntegration".
I have used it in a silverlight app, and it worked great.
Now I'm trying to implement it in a WPF app and I get a wierd error at design time.
Error in line 1 position 444. Element 'http://schemas.microsoft.com/2003/10/Serialization/Arrays:anyType' contains data
from a type that maps to the name 'http://schemas.datacontract.org/2004/07/DomainModel.Model:ITLUser'. The deserializer has
no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'ITLUser'
to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.
ITLUser is an entity in my DevForce datamodel, so it should automatically be a know type. I have even tried marking the ITLUser partial class as a known type, to no avail.
The strange thing is that if I comment out the
line, and actually run the program, it deserializes correctly. Its only at design time that it breaks.
Actually, at design time, I just get no data, I have to hook a second instance of Studio up and debug
design time to see the error. The error comes when I call
_entityMgr.CacheStateManager.RestoreCacheState(dataStream, new RestoreStrategy(true, true, MergeStrategy.OverwriteChanges), true, false);
Any help? I'm just going to do without design time dat for now. :(