【问题标题】:the format of the specified network name is invalid, WCF Self Host on Windows XP, works fine on Windows 7指定网络名称的格式无效,Windows XP 上的 WCF Self Host,在 Windows 7 上工作正常
【发布时间】:2015-07-01 10:35:18
【问题描述】:

WCF Self Host 在 Windows XP Mode SP3、.NET 4.0 上使用 WPF,在 Windows 7 上运行良好,但在 servicehost.Open() 上引发内部异常 指定网络名称的格式无效

System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen() 处的堆栈跟踪

多个端点:

  1. 基本的HttpBinding
  2. WebHttpBinding
  3. NetTcpBinding

这是一个已知问题吗?

【问题讨论】:

    标签: wpf wcf windows-7 windows-xp servicehost


    【解决方案1】:

    此问题与 Windows XP 上的 httpcfg 要求有关。 它是通过使用现有的 localhost:8732/Design_Time_Addresses 自托管 WCF 来解决的。它需要向 urlacl 添加选择的端口,其权限类似于 8732。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-24
      • 1970-01-01
      • 1970-01-01
      • 2018-06-06
      • 2012-07-04
      • 1970-01-01
      • 1970-01-01
      • 2013-10-06
      相关资源
      最近更新 更多