fiogf49gjkf0d I have some C# code that I have used in an ASP.NET app to open an OleDbConnection to SalesLogix, and it connects just fine. When I copied this code to a console application I am building, it doesn't work. I get the error:
The 'SLXOLEDB.1' provider is not registered on the local machine.
The provider obviously is installed, because when I run the ASP.NET code in DevStudio with the same connection string, it connects with no problem at all. I have included the code below.
...
private string _connectionString;
private OleDbConnection _conn;
public SLX_DB()
{
_connectionString = ConfigurationManager.ConnectionStrings["SlxConnection"].ToString();
_conn = new OleDbConnection(_connectionString);
_conn.Open();
}
...
I have already verified that the connection string is reading from the app.config correctly, and that it is identical in both the ASP.NET app and the console app.
Any help is appreciated.
|