Unspecified error: On opening OleDbConnection in VB. net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scriptcsharp
    New Member
    • Jul 2007
    • 2

    Unspecified error: On opening OleDbConnection in VB. net

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


    Code:
     Dim dbConn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\test\data.mdb")
       try
       {
       dbConn.Open() 
       }
    Exception

    Code:
    Exception: 
      at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString   constr, OleDbConnection connection)
       at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions    options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
       at    System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection    owningConnection, DbConnectionPoolGroup poolGroup)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.OleDb.OleDbConnection.Open()
Working...