WCF与回调错误

时间:2011-08-05 13:57:53

标签: c# wcf

我使用 wsDualBinding 创建了带回调的WCF服务。它在我的本地机器上工作正常,这意味着我可以有多个客户端订阅和来回通信就好了。但是,当我上传到我的Webhosting“Winhost”时,这是我得到的错误:

该服务未对呼叫者进行身份验证。

这是我的web.config

<behaviors>
  <serviceBehaviors>
    <behavior>          
      <serviceMetadata httpGetEnabled="true"/>          
      <serviceDebug includeExceptionDetailInFaults="false"/>
    </behavior>

    <behavior name="wsDualHttpBinding.ApartmentService">         
      <serviceMetadata httpGetEnabled="true"/>          
      <serviceDebug includeExceptionDetailInFaults="false"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<services>
  <service name="WsDualHttpBinding" behaviorConfiguration="wsDualHttpBinding.ApartmentService">
    <endpoint address="" binding="wsDualHttpBinding" contract="wsDualHttpBinding.IAptService">          
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    <endpoint name="BasicHttpBinding" address="" binding="basicHttpBinding" contract="basicHttpBinding.IAptService" />
  </service>
</services>

0 个答案:

没有答案