如何修复“调用者未通过服务验证”?

时间:2011-03-06 08:01:07

标签: .net wcf web-services

<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>

上面显示的我的WCF“Web.config”,我应该将“”更改为“”。如何改变?

1 个答案:

答案 0 :(得分:0)