Hi,
I'm currently performing an update through the SAP DI inside a new AppDomain. For creating this instance in the newAppDomain all the classes related must have the [Serializable] attribute. Creating and reading works for me but for updating and deleting i use Generaldataparams and I execute the following code :
var dataParams = ((GeneralDataParams)(service.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
dataParams.SetProperty(entity.Metadata.PrimaryKey.Value.Name, entity.PrimaryKeyValue);
When i execute the second line the next Exception is being returned;
Der Typ "System.Dynamic.IDispatchComObject" in Assembly "System.Dynamic, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ist nicht als serialisierbar gekennzeichnet.
Have anyone experienced something similar?
This method is inside a Serializable class. I have also tried to set a private static field _dataParams with the [NonSerialized] attribute but its still not working.
Have someone any clue?
Thanks in advance