【发布时间】:2012-10-04 07:24:54
【问题描述】:
我有一个 .NET 远程服务器,它有多个注册的众所周知的类型:
<wellknown type="VS.WorkingClass, WorkingClass" objectUri="WorkingClass.rem" mode="SingleCall"/>
<wellknown type="VS.BrokenClass, BrokenClass" objectUri="BrokenClass.rem" mode="SingleCall"/>
当我执行 RemotingConfiguration.Configure(configFile) 并从 RemotingConfiguration.GetRegisteredWellKnownServiceTypes() 循环遍历 WellKnownServiceTypeEntry 实例时,WorkingClass 的条目设置了其 ObjectType,但 BrokenClass 没有设置。这两个类都作为项目引用包含在服务器项目中,我没有收到任何错误消息。有什么想法会导致这种情况吗?
【问题讨论】: