WCF错误:找不到源,但无法搜索部分或全部事件日志。无法访问的日志:安全性

时间:2012-02-03 13:34:33

标签: c# asp.net wcf

我正在尝试从服务器访问WCF服务到我的客户端Web应用程序进行测试。我收到以下错误:

找不到源,但无法搜索部分或全部事件日志。无法访问的日志:安全性

我正在使用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 个答案:

答案 0 :(得分:0)

检查并确保使用正确的凭据连接到正确的数据库以进行记录;或者如果使用file作为日志记录的源,那么检查运行代码的用户是否对其尝试用于登录的文件具有写权限。