Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Keyword not supported

Reply
Thread Tools

Keyword not supported

 
 
Carl
Guest
Posts: n/a
 
      08-01-2003
Hi,

I have an ASP app that queries MS Indexing Service.

Below is my code.

#############################
Imports System
Imports System.Data.SqlClient

Dim strCatalog As String

' Catalog Name
strCatalog = "Test"

Dim connString As String
= "Provider=MSIDXS.1;Integrated Security .='';Data
Source='" & strCatalog & "'"

Dim conn As New SqlConnection(connString)
conn.Open()
################################

When I try to open the connection I get the message
"Exception Details: System.ArgumentException:
Keyword not supported: 'provider'."

Any help would be much appreciated.

tnx
carl
 
Reply With Quote
 
 
 
 
Kevin Cunningham
Guest
Posts: n/a
 
      08-01-2003
I have not used ado.net to access MS Indexing Service but my guess would be
that you should probably use the OLEDb namespace. When you use the
SqlClient namespace it implies sql server so a provider is not necessary.
Do something like:

Imports System
Imports System.Data.OleDb

Dim strCatalog As String

' Catalog Name
strCatalog = "Test"

Dim connString As String = "Provider=MSIDXS.1;Integrated Security
..='';Data Source='" & strCatalog & "'"

Dim conn As New OleDbConnection(connString)
conn.Open()

--
Kevin Cunningham
Software Architects, Inc.
"Carl" <(E-Mail Removed)> wrote in message
news:05d501c357d9$f1e1e960$(E-Mail Removed)...
> Hi,
>
> I have an ASP app that queries MS Indexing Service.
>
> Below is my code.
>
> #############################
> Imports System
> Imports System.Data.SqlClient
>
> Dim strCatalog As String
>
> ' Catalog Name
> strCatalog = "Test"
>
> Dim connString As String
> = "Provider=MSIDXS.1;Integrated Security .='';Data
> Source='" & strCatalog & "'"
>
> Dim conn As New SqlConnection(connString)
> conn.Open()
> ################################
>
> When I try to open the connection I get the message
> "Exception Details: System.ArgumentException:
> Keyword not supported: 'provider'."
>
> Any help would be much appreciated.
>
> tnx
> carl



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting an exception "Keyword not supported: 'provider'." =?Utf-8?B?dnZlbms=?= ASP .Net 3 03-28-2009 12:11 AM
'AS' keyword supported? Sean S - Perth, WA ASP General 10 04-20-2006 02:11 AM
Keyword not supported - Provider Kev ASP .Net Datagrid Control 0 01-06-2006 06:07 PM
Keyword Not Supported Error Frank Bishop ASP .Net 1 05-30-2005 02:05 PM
Keyword not supported Danijel Valentic ASP .Net Web Controls 1 08-31-2004 04:09 PM



Advertisments