how to transfer to a com+ applicaion?
I write three c# project.
Field.dll
public struct FieldStruct
{
public string FldName;
public string FldValue;
}
TxServer.dll (Ref to Field.dll)
[Transaction(TransactionOption.Required)]
public class TxServer : ServicedComponet
{
[AutoComplete]
public string Hello(FieldStruct field)
{
string s = "";
s += "field.FldName = " + field.FldName;
return s;
}
}
TxClient (Web Client) Ref to Field.dll and TxServer.dll
public void button1_click( , )
{
FieldStruct field;
field.FldName = "MyName";
TxServer t = new TxServer();
string s = t.Hello(field);
}
The above code is only used to demo.
Question:
At TxClient t.Hello(field) line Report error message:SerializationException error.WHY?
sometime is ok! sometime is not ok! WHY?