如何解决“呼叫者未通过服务验证"的问题? [英] How to fix "The caller was not authenticated by the service"?

查看:28
本文介绍了如何解决“呼叫者未通过服务验证"的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<预><代码><配置><system.serviceModel><绑定><ws2007HttpBinding><绑定名称="UnifyDataService" maxReceivedMessageSize="1048576"><readerQuotas maxStringContentLength="32768" maxArrayLength="1048576"/><安全><运输><extendedProtectionPolicy policyEnforcement="从不"/></运输></安全></binding></ws2007HttpBinding></绑定><服务><service behaviorConfiguration="AdoProxySite.AdoProxyBehavior"name="Unify.TD.Runtime.Wcf.Server.AdoProxy"><端点地址="" binding="ws2007HttpBinding" bindingConfiguration="UnifyDataService"name="UnifyDataService" contract="Unify.TD.Runtime.Wcf.Server.IAdoProxy"/><endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/></服务></服务><行为><服务行为><行为名称="AdoProxySite.AdoProxyBehavior"><serviceMetadata httpGetEnabled="true"/><serviceDebug includeExceptionDetailInFaults="true"/></行为></serviceBehaviors></行为></system.serviceModel><system.web><编译调试=真"/></system.web></配置>

我的 WCF "Web.config" 如上所示,我应该将 "" 更改为 "".怎么改?

解决方案

这可以帮助您:WCF 错误:调用者未经服务验证

<configuration>
  <system.serviceModel>
    <bindings>
      <ws2007HttpBinding>
        <binding name="UnifyDataService" maxReceivedMessageSize="1048576">
          <readerQuotas maxStringContentLength="32768" maxArrayLength="1048576" />
          <security>
            <transport>
              <extendedProtectionPolicy policyEnforcement="Never" />
            </transport>
          </security>
        </binding>
      </ws2007HttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="AdoProxySite.AdoProxyBehavior"
        name="Unify.TD.Runtime.Wcf.Server.AdoProxy">
        <endpoint address="" binding="ws2007HttpBinding" bindingConfiguration="UnifyDataService"
          name="UnifyDataService" contract="Unify.TD.Runtime.Wcf.Server.IAdoProxy" />
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="AdoProxySite.AdoProxyBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
  <system.web>
    <compilation debug="true"/>
  </system.web>
</configuration>

My WCF "Web.config" shown above, I should change "" to "". How to change it?

解决方案

This could help you: WCF error: The caller was not authenticated by the service

这篇关于如何解决“呼叫者未通过服务验证"的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆