我无法在IIS 5.1上运行WCF服务

时间:2012-12-03 07:16:20

标签: wcf iis

我有可以在VS2008的开发服务器上运行的WCF服务,但是在我在IIS 5.1上部署它并运行后出现以下错误消息:

  

此集合已包含方案http的地址。此集合中每个方案最多只能有一个地址。       参数名称:item

web.config文件中的相应部分如下所示:

<system.serviceModel>
  <behaviors>
    <serviceBehaviors>
      <behavior name="Parus.ServiceBehavior">
        <serviceMetadata httpGetEnabled="true" />
        <serviceDebug includeExceptionDetailInFaults="true" />
      </behavior>
    </serviceBehaviors>
  </behaviors>
  <services>
    <service behaviorConfiguration="Parus.ServiceBehavior" name="Parus.Service">
      <endpoint address="" binding="basicHttpBinding" contract="Parus.IService">
      </endpoint>
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    </service>
  </services>
</system.serviceModel>

我试过这篇文章:

http://blogs.msdn.com/b/rampo/archive/2008/02/11/how-can-wcf-support-multiple-iis-binding-specified-per-site.aspx

但它不起作用。

有人知道解决这个问题吗?

戈兰

0 个答案:

没有答案