当我打这个电话时:
RemotingConfiguration.Configure(QviDBXml.NetworkConfigName, false);
我得到以下异常结果。
UcpService:.NET Remoting启动异常:消息:远程处理配置失败,异常为'System.Reflection.TargetInvocationException:调用目标已抛出异常。 ---> System.Security.Principal.IdentityNotMappedException:无法转换部分或全部标识引用。 在System.Runtime.Remoting.Channels.Ipc.IpcServerChannel.StartListening(对象数据)
exe.config文件位于正确的文件夹中,当它被配置为以美国 - 英语运行时,它在同一台机器上运行良好。
我将不胜感激。
答案 0 :(得分:0)
原来问题是我的.config文件中有不正确的授权数据:
<channel ref="ipc" portName="qviucp" authorizedGroup="Everyone" exclusiveAddressUse="false">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
一旦我设置authorizedGroup =“Jeder”,服务就开始了。