【发布时间】:2011-08-19 19:58:28
【问题描述】:
我必须用 C# 编写一个服务程序和一个程序来维护它。我不能使用 .net 3 或 4,所以我坚持使用 .Net 2.0。我知道IPC 频道可以帮助我,但我在使用它们时遇到了问题。
我正在尝试使用IDictionary 作为属性列表来创建我的IpcServerChannel。但我找不到要发送的好属性。
这是我的清单
IDictionary properties = new Hashtable();
properties.Add("authorizedGroup", "Users");
properties.Add("portName", "ServerChannel");
channel = new IpcServerChannel(properties,null);
尝试运行此程序时,我收到了 IdentityNotMappedException 错误。你们有什么想法吗?
【问题讨论】:
标签: c# multithreading .net-2.0 c#-2.0 ipc