title: Error running windows search query on remote machine from C#
body: <p>When I try to execute the following OLEDB command to programmatically query a search index on a remote machine (ALEC-HP)  on the same domain I get  the following error message</p>
  
  <blockquote>
    <p>Unspecified error: -2147219688(0x80040718)</p>
  </blockquote>
  
  <p>On the local machine the share <code>\\ALEC-HP\Simon.ALEKATEST.000</code> can be seen OK</p>
  
  <pre><code>SELECT System.ItemNameDisplay,SYSTEM.ITEMURL,System.DateModified, 
         System.ItemName, System.Search.Rank, System.Keywords,
         System.Search.AutoSummary,System.Search.GatherTime, System.ItemType  
  FROM ALEC-HP.SystemIndex 
  WHERE Scope='file://ALEC-HP/Simon.ALEKATEST.000'
  AND CONTAINS(*,'"April Dwyer"',1033)
  </code></pre>
  
  <p>If the query is simplified to</p>
  
  <pre><code>SELECT  System.ItemNameDisplay,SYSTEM.ITEMURL,System.DateModified,
          System.ItemName, System.Search.Rank, System.Keywords, 
          System.Search.AutoSummary,System.Search.GatherTime, System.ItemType  
  FROM ALEC-HP.SystemIndex 
  WHERE CONTAINS(*,'"April Dwyer"',1033)
  </code></pre>
  
  <p>The same error occurs.</p>
  
  <p>The query on the local index</p>
  
  <pre><code>SELECT  System.ItemNameDisplay,SYSTEM.ITEMURL,System.DateModified, 
          System.ItemName, System.Search.Rank, System.Keywords,
          System.Search.AutoSummary,System.Search.GatherTime, System.ItemType 
  FROM "SYSTEMINDEX" 
  WHERE CONTAINS(*,'"April Dwyer"',1033)
  </code></pre>
  
  <p>runs OK. Rebuilding the search index on ALEC-HP doesn't help.</p>
  
  <p>The remote machine ALEC-HP runs Windows 7 and local search works OK on that machine. </p>
  
  <ul>
  <li>Using a remote machine running Win 8.1 the remote index query runs OK. </li>
  <li>I can't see any significant differences in permissions in the Search Index folders (C:\Program Data\Microsoft\Search) on a remote machine where the query runs and a remote machine where it doesn't. </li>
  <li>The Win 8.1 remote machine does not seem to have a search index folder  C:\Program Data\Microsoft\Search\Data\Applications\Windows\Projects\SystemIndex\Indexer\CiFiles containing .ci files which is present on the Win 7 machine. </li>
  <li>I think these are database files for the edb database (Jet Blue) used by Windows Search Indexer.  </li>
  <li>The local machine runs Windows 8.1.</li>
  </ul>
  
  <p>Problem has now appeared on the search index of a remote machine running Win 8.1 </p>