【问题标题】:Discovery Interface not found未找到发现接口
【发布时间】:2014-10-10 14:58:08
【问题描述】:

发现客户端代码。

var dc = new DiscoveryClient(new UdpDiscoveryEndpoint());
FindCriteria fc = new FindCriteria(typeof(IService1));
fc.Duration = TimeSpan.FromSeconds(20);
FindResponse fr = dc.Find(fc);

我正在托管 wcf,我已经能够使用我自己的发现实现检查并看到它是否正常工作,但我被告知这是更快、更安全。我不确定为什么会收到以下错误消息。

System.ArgumentException occurred
Message: A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Interface not found.

关于如何解决此问题的任何想法?

事实证明我可以运行代码并且它可以从 .exe 运行,但是当我在 Visual Studio 调试器中运行时它不起作用。

【问题讨论】:

  • Iservice1接口有吗?

标签: c# .net wcf visual-studio-2013 argumentexception


【解决方案1】:

原来在调试模式下符号没有加载

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-07-06
    • 2014-07-21
    • 2013-12-06
    • 1970-01-01
    • 2020-07-24
    • 1970-01-01
    • 2018-03-14
    • 1970-01-01
    相关资源
    最近更新 更多