Hi,
I am trying to open an OleDb connection for access it gives me the following error.
The type initializer for
'System.Transactions.Diagnostics.DiagnosticTrace' threw an exception.
Code:Private Sub OpenConnection() If _connection Is Nothing Then _connection = New OleDb.OleDbConnection(_connStr) _connection.Open() Else If _connection.State = ConnectionState.Open Then Else _connection.Open()<------- ERRROR HERE End If End If End Sub


Reply With Quote

Bookmarks