I receive this error message while trying to connect to an Access DB:
System.Data.OleDb.OleDbException: Could not find file C:\WINDOWS\system32\CClass.mdb.
Here is some code:
Dim conStudentInfo As OleDbConnection
Dim cmdSelectStudent As OleDbCommand
Dim dtrStudent As OleDbDataReader
conStudentInfo = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=CClass.mdb" )
conStudentInfpen()
I placed the CClass.mdb DB inside my wwwroot folder, along with the page that is trying to view. Originally I had it located somewhere else and I received an error saying that I did not have permission to open it. Any help would be appreciated.
System.Data.OleDb.OleDbException: Could not find file C:\WINDOWS\system32\CClass.mdb.
Here is some code:
Dim conStudentInfo As OleDbConnection
Dim cmdSelectStudent As OleDbCommand
Dim dtrStudent As OleDbDataReader
conStudentInfo = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=CClass.mdb" )
conStudentInfpen()
I placed the CClass.mdb DB inside my wwwroot folder, along with the page that is trying to view. Originally I had it located somewhere else and I received an error saying that I did not have permission to open it. Any help would be appreciated.