【问题标题】:Error while browsing WCF service浏览 WCF 服务时出错
【发布时间】:2009-11-03 21:54:41
【问题描述】:

2009-11-03 16:36:10,818 [3404] 错误 WebApplication.Global [UserHostAddress: [::1] ApplicationSource [//TestService.svc]] - Application_Error 处理异常:1 个异常的堆栈跟踪.根本原因在顶部。 1:已添加具有相同密钥的项目。 System.ArgumentException 在 C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll 在 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult 结果) 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult 结果) 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication 上下文,布尔流上下文) 在 System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e)

【问题讨论】:

  • 你能发布代码/配置文件吗? “浏览”是什么意思?

标签: wcf config


【解决方案1】:

这发生在我身上,因为:
1. 我的 IIS Web 应用程序的高级设置在“启用的协议”中显示“http,https”。
2.“默认网站”的“站点绑定”没有https绑定类型。

为了解决这个问题,我必须执行以下一项操作:
1. 从我的 IIS Web 应用程序高级设置的“启用协议”中删除“https”。
2.将“https”绑定类型添加到“默认网站”的“站点绑定”中。

【讨论】:

  • 谢谢拉米,这是给我的。希望这对其他人也有帮助。我在 Enabled Protocols 中添加了 https 以匹配登台和生产,但当然,我的开发环境没有启用 SSL。很难找到一个,谢谢。
【解决方案2】:

检查您的配置文件。您可能有两个具有相同名称、相同合同或其他重复项的条目。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-24
    • 1970-01-01
    • 2011-06-20
    • 2011-03-17
    • 2012-05-21
    相关资源
    最近更新 更多