Okay, I have been fighting with this for about two days now. I believe I mentioned previously that there isn’t much docuemntation on the new desktop seach for Windows Server 2008. it turns out that what I thought to be true was in fact wrong. I thought, and please correct me if I am wrong, that the windows search feature in Windows Server 2008 is the same as the windows search feature in Vista. Boy I was wrong on that one. I was trying to search for something that wasn’t there. I just needed a different connection string is all. Here is what I used for Vista:
Dim connString As String = “Provider=MSIDXS.1;Integrated Security .=””
It works fine. I thought it worked fine in server 2008 also. I was trying to find a whole plethora of solutions that could fix my problem. What I needed to change was that line of code above to:
Dim connString As String = “Provider=Search.CollatorDSO;Extended Properties=’Application=Windows’”
Go figure! The error I was getting was System.Data.OleDb.OleDbException: Service is not running.
That told me that the windows indexing or windows search was not running. I didn’t figure that the connection string would be wrong. Oh and there is no catalog created when you index files on server 2008. You have to reference them this way:
SELECT filename blah blah FROM systemindex..scope() WHERE SCOPE=‘file:C:\inetpub\cgweb\appname\repository’
You also have to not include the directory folders like this:
AND system.itemtype NOT LIKE ‘%Directory%’
I guess that can be chalked up as lessons learned. Don’t look for the obvious, look of the unobvious. Hope this helps you. Have fun coding and as always, if there are any questions or suggestions, they are welcome. Thank you.