我有一个.net WinForms应用程序,它将插件( dll )加载到自己的AppDomains中,每个dll使用domain.CreateInstanceAndUnwrap()获得自己的AppDomain。我想要的是,这些对象永远保持连接(直到应用程序停止)。Public Overrides Function InitializeLifetimeService() As Object
程序的结果是为C::.ctor(System.MarshalByRefObject)找到message构造函数,因此运行时似乎拒绝了构造函数,它接受了我要传递给CreateInstanceFromAndUnwrapusing System;using System.Reflection;
{
public B(MarshalByRefObject ob
客户端序列化了and对象,但Windows服务器无法对其进行反序列化,给出了错误:在类中找不到字段"MarshalByRefObjectBinaryFormatter formatter = new BinaryFormatter();有问题的类具有Serializable属性,并且继承自MarshalByRefObject如果我删除MarshalByRefObject</em