2012-02-03 17 views
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> 
+1

是什麼讓你相信這是WCF特有的東西?從您發佈的錯誤中,聽起來您的客戶端或服務試圖寫入安全事件查看器並遇到權限問題。 – Tim 2012-02-03 17:38:54

+0

就像@Tim所說的,這確實是一個問題:在某些時候,你正試圖將某些東西寫入安全日誌。我建議你看看這個方向,找出確切的問題。 – Koen 2012-02-07 06:17:37

回答

0

檢查並確保您連接到正確的DB與記錄正確的憑證;或者如果使用文件作爲日誌記錄的源,那麼檢查運行代碼的用戶是否具有對其嘗試用於登錄的文件的寫入權限。

+0

這不是一個數據庫,它的Windows事件日誌 - 錯誤OP報告是「未找到源,但部分或全部事件日誌無法搜索。不可訪問日誌:安全性」。這與數據庫或文件記錄無關。 – Tim 2012-02-07 06:45:34

相關問題