无效的URI:无法解析主机名。不要只使用WIndows 7 Starter(不适用于家庭版)

时间:2012-01-01 12:30:39

标签: c# wcf windows-7

重点是调试我的C#app我遇到了错误:UriFormatException未处理。我已经创建了p2p控制台聊天。

调试在

处停止
  

chatClient.Open()

带有日志 “无效的URI:无法解析主机名。”

chatClient是我的类的一个对象,由公共接口IPeerChannelChat继承 与

[ServiceContract(
    Namespace = "http://slickthought.net/peerchannel",
    CallbackContract = typeof(IPeerChannelChat))]

应该提到的是,此代码适用于Windows 7 Home Edition。

但是Windows 7 Starter向我展示了这个例外。

你有同样的经历吗? 提前谢谢。

1 个答案:

答案 0 :(得分:1)

猜测:可能是因为chatClient.open产生了一个新进程,并且由于Windows 7 Starter版本仅限于三个并发进程,因此会停止吗?