在使用netremoting方式的中间层里可否使用reference方式传入自定义结构体
如题,中间层是用netremoting方式通讯;
在中间层里,定义了如下方法:
public int GetDrugBasicInfo(string communityCode,ref DrugBasicInfo drugInfo)
其中,DrugBasicInfo是中间层定义的一个结构体,定义如下:
[Serializable] //指定为可序列化
public struct DrugBasicInfo
{
public string drugId;
...
}
当我在客户端调用方法GetDrugBasicInfo时,出现如下错误提示(摘要):
************** 异常文本 **************
System.Runtime.Serialization.SerializationException: 无法找到程序集“InPDoctorDBI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”。
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 TJ.CHSIS.MHIS.InPDoctor.InPDoctorDBI.GetDrugBasicInfo(String communityCode, DrugBasicInfo& drugInfo)
请问如何解决此问题?