RE: Indexing service server 2008 iis7.0 error



Found the problem

the syntax Provider=\MSIDXS.1\ should be Provider=MSIDXS.1
I do not know where I got that syntax but it does not work in Server 2008.

Also The location of the Catalog "Data Source=Web" needs to have SYSTEM
with Read/Write.

Don't forget to install the indexing service.

Thank you
--
Jerry


"Jerry C" wrote:

I have a web page that uses Indexing service and I am getting a error.

"The '\MSIDXS.1\' provider is not registered on the local machine."
When I try to fill the dataset using that provider with the Code:

Dim odbSearch As New OleDbConnection("Provider=\MSIDXS.1\;Data Source=Web;")
Dim cmdSearch As New OleDbCommand
cmdSearch.Connection = odbSearch
cmdSearch.CommandType = CommandType.Text
Dim searchText As String = txtFileText.Text.Replace("'", "''")

cmdSearch.CommandText = "select doctitle, filename, vpath, rank,
characterization from scope() where FREETEXT(Contents, '" + searchText + "')
order by rank desc "
Dim daIS As New OleDbDataAdapter(cmdSearch)
Dim dsIS As New DataSet
Try
daIS.Fill(dsIS)
'gvSearch.DataSource = dsIS
'gvSearch.DataBind()
Catch eFS As Exception
ScriptManager.RegisterClientScriptBlock(Me,
Me.Page.GetType(), "ShowASMessage", " alert('Error Searching Files. Error: "
& eFS.Message & " ');", True)
Exit Sub
End Try

I found this kb:

http://support.microsoft.com/kb/278604

but when I tried to use regsvr32 I got the error:

DllRegisterServer error 0x80040201
Query.dll is in windows\system32

The indexing service is installed and Web catalog is created.


I might add that this code works on windows server 2003 iis6.0

Any help is welcome

Thank you,

--
Jerry
.



Relevant Pages