Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyword Provider is not supported when trying to connect
Message
From
15/09/2008 15:21:51
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Keyword Provider is not supported when trying to connect
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347746
Message ID:
01347746
Views:
152
Hi,

I want to develop an MM.Net application with a Sql Anywhere 11 Server backend. I don't know if someone has developed a MM.Net wrapper around the Sql Anywhere .Net Provider yet, so I decided to try the OleDB connection provider first.
I succesfully migrated the MM Northwind database to Sql Anywhere.

I modified the app.config of the MM Northwind Winforms Sample Project and added:
add key="CustC" value="Customer C SQL Anywhere" 

add key="CustC\Northwind\Connection" value="Provider=SAOLEDB.11;Persist Security Info=True;User ID=dba;Password=sql;Location=d:\_Data\SANorthwind.db"

add key="CustC\Northwind\DataAccessClass" value="DataAccessOleDb" 
I then got the following error message :


The keyword Provider is not supported
(Het sleutelwoord wordt niet ondersteund: provider.)


bij System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
bij System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
bij System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
bij System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
bij System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
bij System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value)
bij System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
bij System.Data.SqlClient.SqlConnection..ctor(String connectionString)
bij OakLeaf.MM.Main.Data.mmDataAccessSql.CreateSqlConnection()
bij OakLeaf.MM.Main.Data.mmDataAccessSql.FillDataSet(DataSet ds, IDbDataAdapter dbAdapter, String tableName, Boolean clearOnFill)
.....


Since this didn't work, I changed the Database Sets in the File Options to Customer B (Visual Foxpro) to try out the VFP OleDB connection example provided. When I then selected the Employee menu item,I got the same error
I suspect the app stil want's to use an MS SqlConnection.

What did I do wrong?

Thanks in advance,

Mark
If everything seems to be going well, you obviously don't know what the hell is going on !
Next
Reply
Map
View

Click here to load this message in the networking platform