1
我目前有一個獨立的Web服務和一切正常,除非我嘗試使用遠程計算機的方法之一。獨立的Web服務身份驗證錯誤
我正在使用wcftestclient進行測試。
我得到驗證錯誤消息:
我可以從遠程機器打網絡服務「對方不是由服務認證」的方法wcftestclient填充然而,當我嘗試調用它我得到身份驗證錯誤。
任何幫助將不勝感激。
感謝,
這是我的app.config文件:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<!-- This section is optional with the new configuration model
introduced in .NET Framework 4. -->
<service name="Microsoft.ServiceModel.Samples.CalculatorService" behaviorConfiguration="CalculatorServiceBehavior">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/ServiceModelSamples/service"/>
</baseAddresses>
</host>
<!-- this endpoint is exposed at the base address provided by host: http://localhost:8000/ServiceModelSamples/service -->
<endpoint address="" binding="wsHttpBinding" contract="Microsoft.ServiceModel.Samples.ICalculator" />
<!-- the mex endpoint is exposed at http://localhost:8000/ServiceModelSamples/service/mex -->
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="CalculatorServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="False"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
您是否嘗試設置'includeExceptionDetailInFaults'爲真?這可能會幫助你指出正確的方向 –