I want to return a private field from a remoted object but i get the exception:
RemotingException was caught Remoting cannot find field 'connectionString' on type 'DBGeneral'.
I DO get the Private field's FieldInfo object when executing the GetField() method.
FieldInfo field = o.GetType().GetField("connectionString", BindingFlags.Instance | BindingFlags.NonPublic);
But its when execute GetValue(), that the RemotingException is thrown.
field.GetValue(o);
If i turn remoting off and reflect the local private connectionString field, i get the string returned to me.