Hi Otis (is it Otis?).
I 'm getting a strange error trying to send an entity from the client to the server to be saved. Here is the server code:
using System;
using Proximity.Data ;
using Data.References ;
using Data.References.EntityClasses ;
using Data.References.TypedListClasses ;
using SD.LLBLGen.Pro.ORMSupportClasses ;
namespace Proximity.Data.References
{
public class ReferenceDataFactory: BaseDataFactory (inherited from MarshalByRefObj)
{
public ReferenceDataFactory()
{
}
. . .
public string SaveAccount (AccountEntity _account)
{
try
{
AccountEntity _saveAccount = new AccountEntity() ;
_saveAccount = _account ;
_saveAccount.Save() ;
return "Success" ;
}
catch (Exception e)
{
return e.InnerException.ToString() ;
}
}
}
}
The client code:
private void button1_Click(object sender, System.EventArgs e)
{
// _o is the proxy of the server object ReferenceDataFactory
// _account is the local Entity created from that proxy
try
{
this._o.SaveAccount(this._account) ;
}
catch(Exception d)
{
... etc
}
}
The exception is of type: SerializationException and it says: "Because of security restrictions, the type SD.LLBLGen.Pro.ORMSupportClasses.EntityFields cannot be accessed."
This seems like much too simple code to be getting such a strange error message! Do you have any ideas?
Thanks in advance.
Jeff