how to transfer to a com+ applicaion?

renben 2003-10-20 04:44:43
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?
...全文
86 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ruanyuping 2003-10-22
  • 打赏
  • 举报
回复
up
wjhs 2003-10-21
  • 打赏
  • 举报
回复

110,502

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧