Database not found error

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2006
Posts: 88
Reputation: bajanpoet is an unknown quantity at this point 
Solved Threads: 0
bajanpoet bajanpoet is offline Offline
Junior Poster in Training

Database not found error

 
0
  #1
Sep 5th, 2007
I've found that my application does not find my mdb file anymore! I have used a open file dialog box to select the mdb file that I want my app to use and add it to my connectstring via a variable, but although the variable has the correct path to the db, when I'm trying to open my connection to the oledb, it comes back saying that the database cannot be found.

Any ideas?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 38
Reputation: matale is an unknown quantity at this point 
Solved Threads: 1
matale matale is offline Offline
Light Poster

Re: Database not found error

 
0
  #2
Sep 5th, 2007
Try doing it in hard code and see what happens.
My current Project www.footystat.com
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 88
Reputation: bajanpoet is an unknown quantity at this point 
Solved Threads: 0
bajanpoet bajanpoet is offline Offline
Junior Poster in Training

Re: Database not found error

 
0
  #3
Sep 5th, 2007
I did it in hard code and had no change.

I remembered that I had the "Error List" window minimized, so when I opened it, it was saying that it couldn't find the database - then I realized that somehow, in my Solution Explorer window, the path to my db (that I was no longer using!) was pointing to a 'file' that was where my db was - it was looking there all the time. So I removed the db reference from within my Soluton Explorer and was then able to compile my app successfully.

Because it was looking for a file in my Solution Explorer, none of the changes I made to the db location in code made any difference, but once that reference was removed, I was then able to debug my code as I should.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC