cbarthel Posted May 14, 2003 Posted May 14, 2003 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" ) conStudentInfo.Open() 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. Quote
cbarthel Posted May 14, 2003 Author Posted May 14, 2003 HAHAHAHA.....Nevermind, I got it. I placed it directly on my C drive and it found it fine. Is there any particular location scheme that needs to be followed for databases? Quote
Madz Posted May 14, 2003 Posted May 14, 2003 Just Put the access database file in the slution Folder and at the datasource just enter "\Database.mdb" it would work Quote The one and only Dr. Madz eee-m@il
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.