Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...