By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,479 Members | 988 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,479 IT Pros & Developers. It's quick & easy.

Unspecified error: On opening OleDbConnection in VB. net

P: 2
  • Getting Unspecified error on 32 bit windows XP with office 2010.
  • issue is reproducible on some machine not all.


Expand|Select|Wrap|Line Numbers
  1.  Dim dbConn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\test\data.mdb")
  2.    try
  3.    {
  4.    dbConn.Open() 
  5.    }
  6.  
Exception

Expand|Select|Wrap|Line Numbers
  1. Exception: 
  2.   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString   constr, OleDbConnection connection)
  3.    at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions    options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
  4.    at    System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection    owningConnection, DbConnectionPoolGroup poolGroup)
  5.    at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
  6.    at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
  7.    at System.Data.OleDb.OleDbConnection.Open()
Apr 20 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.