0
我想從服務器訪問WCF服務到我的客戶端Web應用程序進行測試。我收到以下錯誤:WCF錯誤:未找到源,但無法搜索部分或全部事件日誌。無法訪問日誌:安全
未找到源,但無法搜索部分或全部事件日誌。不可訪問日誌:安全
我正在使用wsHttpBinding。
和
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IVirtualMachineManagementService"
closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false"
hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://173.192.138.18/SCVMMService/VirtualMachineManagementService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IVirtualMachineManagementService"
contract="ServiceReference1.IVirtualMachineManagementService"
name="WSHttpBinding_IVirtualMachineManagementService">
<identity>
<servicePrincipalName value="host/win48.scvmmrc.ourcp.com" />
</identity>
</endpoint>
</client>
是什麼讓你相信這是WCF特有的東西?從您發佈的錯誤中,聽起來您的客戶端或服務試圖寫入安全事件查看器並遇到權限問題。 – Tim 2012-02-03 17:38:54
就像@Tim所說的,這確實是一個問題:在某些時候,你正試圖將某些東西寫入安全日誌。我建議你看看這個方向,找出確切的問題。 – Koen 2012-02-07 06:17:37