【发布时间】:2011-06-05 18:11:21
【问题描述】:
我正在尝试使用 MS Dynamics CRM 2011。我已经在虚拟机上安装了测试版,看起来还不错 - 一些很棒的新功能等等。
但是,当我尝试连接到新的 XRMServices(更新的 2011 WCF Web 服务)时出现异常
Exception: System.ServiceModel.ServiceActivationException: The service
'/organame/XRMServices/2011/Organization.svc' cannot be activated due to an
exception during compilation. The exception message is:
'System.ServiceModel.Description.UseRequestHeadersForMetadataAddressBehavior'.
This collection only supports one instance of each type.
Parameter name: item. ---> System.ArgumentException: The value could not be added to
the collection, as the collection already contains an item of the same type:
'System.ServiceModel.Description.UseRequestHeadersForMetadataAddressBehavior'.
This collection only supports one instance of each type.
Parameter name: item
我发现的对这个异常的唯一引用表明它是由 IIS 中配置的多个绑定引起的,在我的情况下我确实有,但即使删除它们后问题仍然存在。
任何建议将不胜感激。
【问题讨论】:
标签: wcf dynamics-crm dynamics-crm-2011