【问题标题】:Connect to a wcf with windows 10 iot使用 Windows 10 iot 连接到 wcf
【发布时间】:2016-08-03 15:42:11
【问题描述】:

我正在尝试将一个 Windows 10 物联网应用 (uwp) 连接到一个简单的 wcf 服务库。

但我总是遇到同样的问题:在我的 .NETcore.UniversalWindowsPlateform (5.0.0) 上,我有一个例外

平台不支持

这是连接到 wcf 的简单代码:

public sealed class StartupTask : IBackgroundTask
{
    private InstanceContext instanceContext;
    private Service1Client serviceProxy;

    public void Run(IBackgroundTaskInstance taskInstance)
    {
        instanceContext = new InstanceContext(this);

        serviceProxy = new Service1Client();
    }
}

对我来说,我的 .NETcore 版本上似乎还没有实现 UpnEndpoint

有人使用 windows 10 iot 成功连接到 wcf 吗?

【问题讨论】:

标签: c# wcf win-universal-app windows-10-iot-core


【解决方案1】:

现在新版本的 wcf 解决了这个问题。不再有“PlateformNotSupported”

【讨论】:

    猜你喜欢
    • 2020-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多