【问题标题】:WCF error: The source was not found, but some or all event logs could not be searched. Inaccessible logs: SecurityWCF 错误:未找到源,但无法搜索部分或全部事件日志。无法访问的日志:安全性
【发布时间】:2012-02-03 13:34:32
【问题描述】:

我正在尝试从服务器访问 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>

【问题讨论】:

  • 是什么让您相信它是 WCF 特有的东西?根据您发布的错误,听起来您的客户端或服务正试图写入安全事件查看器并遇到权限问题。
  • 就像@Tim 所说,这确实是问题所在:在某些时候,您正试图将某些内容写入安全日志。我建议您朝这个方向研究,以查明确切的问题。

标签: c# asp.net wcf


【解决方案1】:

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

【讨论】:

  • 它不是数据库,它是 Windows 事件日志 - OP 报告的错误是“找不到源,但无法搜索部分或全部事件日志。无法访问的日志:安全性”。这与数据库或文件日志无关。
猜你喜欢
  • 2014-08-05
  • 1970-01-01
  • 2011-08-14
  • 1970-01-01
  • 2019-04-03
  • 2012-03-22
  • 2011-10-19
  • 2016-07-18
相关资源
最近更新 更多