473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Keyword not supported

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
Jul 19 '05 #1
1 7052
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" <ca**@nospam.com> wrote in message
news:07****************************@phx.gbl...
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

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Grumble | last post by:
Hello everyone, As far as I understand, the 'inline' keyword is a hint for the compiler to consider the function in question as a candidate for inlining, yes? What happens when a function with...
8
by: Dot net work | last post by:
I need VB.NET's "shadows" functionality inside a C# project. I tried the "new" keyword, but it didn't seem to work, because my particular function does in fact differ in signature to the function...
54
by: Sahil Malik [MVP] | last post by:
What the heck - I can't find it. A bit shocked to see it missing though. So "Does VB.NET have the yield keyword, or any equivalent of it" ? -- - Sahil Malik Upcoming ADO.NET 2.0 book -...
1
by: Carl | last post by:
Hi, I have an ASP app that queries MS Indexing Service. Below is my code. ############################# Imports System Imports System.Data.SqlClient
1
by: Frank Bishop | last post by:
I'm having trouble connecting to my SQL database when running my Web application. I'm getting the error: System.ArgumentException: Keyword not supported: 'VIPER_sql; database'. Here is the...
2
by: vvenk | last post by:
Hello: I am trying to acccess an Gracle 10g database from within an ASP.NET application running on a Windows 2003 server. I have tried both the following connections strings: ...
12
by: Viru Rathore | last post by:
If struct keyword is support the all functionallity of class keyword, only differance i have found is accessibility of member is different in struct is public and class has private. This...
10
by: Sean S - Perth, WA | last post by:
Hi all, Is the keyword 'as' supported in ASP? I'm reasonably sure it's valid VBScript (code examples I've downloaded use it) but when I try to use it in ASP I get an error. Is it perhaps a...
0
by: Harshpandya | last post by:
Hi I am using MYSQL and ASP.Net. to build the Data Reader Page. when i define my connection Key - it gives me this error.Keyword not supported: 'dsn'. MY PAGE Data Reader <%@ Page Language="C#"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.