Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WCF错误:找不到源,但无法搜索部分或所有事件日志。不可访问日志:安全性_C#_Asp.net_Wcf - Fatal编程技术网

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

C# WCF错误:找不到源,但无法搜索部分或所有事件日志。不可访问日志:安全性,c#,asp.net,wcf,C#,Asp.net,Wcf,我正在尝试从服务器访问WCF服务到客户端web应用程序进行测试。我得到以下错误: 找不到源,但无法搜索部分或所有事件日志。不可访问日志:安全性 我正在使用wsHttpBinding 及 检查并确保您使用正确的登录凭据连接到正确的数据库;或者,如果使用文件作为登录源,则检查运行代码的用户是否对其尝试用于登录的文件具有写入权限。您凭什么相信它是WCF特有的?从您发布的错误中,听起来您的客户端或服务试图写入安全事件查看器,但遇到了权限问题。正如@Tim所说,这确实是个问题:在某个时候,您试图向安全日

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

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

我正在使用wsHttpBinding



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

您凭什么相信它是WCF特有的?从您发布的错误中,听起来您的客户端或服务试图写入安全事件查看器,但遇到了权限问题。正如@Tim所说,这确实是个问题:在某个时候,您试图向安全日志写入一些内容。我建议您朝这个方向看,以查明确切的问题。这不是数据库,而是Windows事件日志-错误操作报告是“未找到源,但无法搜索部分或所有事件日志。无法访问的日志:安全性”。这与数据库或文件日志记录无关。
<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>