我不斷收到這個錯誤,而與WCF測試客戶端進行測試:WCF:我一直收到錯誤「調用者未被服務認證」。
調用者沒有被服務認證。
我試圖security mode
設置爲none
在兩側,但錯誤依然堅持
我不能使用basicHttpBinding
因爲我知道它在.NET 4.5
我已經花了幾個小時對於這個問題,但仍然沒有運氣,即使我已經通過SOF也遇到過類似的話題,但他們沒有幫助!
Web.config文件:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="ota2010AEndpoint" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32"/>
<reliableSession ordered="true"/>
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="CalculatorServiceBehavior" name="GWork_Service.Service1">
<endpoint address="" binding="wsHttpBinding" contract="GWork_Service.IService1" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://xxx:8000/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="CalculatorServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
客戶端的應用程序配置:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IService1">
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://xxx:8000/" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IService1" contract="GWork_MER.ServiceReference1.IService1"
name="WSHttpBinding_IService1" />
</client>
</system.serviceModel>
</configuration>
對不起,我要在這裏添加更多的字母,所以我可以傳遞關於有太多的代碼SOF的規則這個問題..asiaasd kasjg kash jasdkus kasdashdsakdasd jasdj ldasdj asd lasd kk adjasad lasld ads kasd lad h3riew askk asdjasdj asdj asdj asd asdj asdj asdj adjsadjasd jasdj asdj adsj adsj ajdasjdasd jadks jsksk jdd asdasd wow that's still not enought my need to add more here
讓它工作使用'basicHttpbinding' – NeedAnswers 2015-02-10 03:30:29
謝謝! .............. – NeedAnswers 2015-02-10 03:38:56