0

System.ServiceModel.ni.dll 中出现“System.ServiceModel.CommunicationException”类型的异常,但在使用 windows phone 8 模拟器时未在用户代码中处理

4

2 回答 2

0

如果没有更具体的信息,很难回答您的问题。但是,您可以查看以下几件事:

- 电话调用的服务是否正在运行?

尝试从您机器上的网络浏览器打开该服务。

- 模拟器能看到服务吗?

尝试从模拟器中的 Web 浏览器打开服务。

- 它是自签名的 https 服务吗?

您需要在模拟器中安装证书。

- 服务是否支持基本的 http 连接?

Windows Phone 8 仅支持 basicHttpBinding。

的帖子也许能给你一些有用的信息。

于 2014-03-20T07:26:35.460 回答
0

Did you ever get anywhere with this? Did you check your InnerException. I too, constantly get this error! My problem is related to ip address error where I didn't realise you had to set a specific IP address in your config file as WP8 is a virtual machine and therefore has its own local host but my problem is that it works, then stops, then eventually works again!! Very unstable behaviour.

Note this occurs with any errors, so you probably need to implement an IErrorHandler in wcf and return a proper error to your client.

于 2013-03-20T17:51:37.453 回答