| | |
Database not found error
Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Sep 2006
Posts: 90
Reputation:
Solved Threads: 0
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?
Any ideas?
•
•
Join Date: Sep 2006
Posts: 90
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- Microsoft JET Database Engine error '80040e14' (ASP)
- Page Cannot Be Found Error in IE- refresh fixes (Viruses, Spyware and other Nasties)
- Hardware Monitor Found an Error (Windows NT / 2000 / XP)
- Spyware causing lsass.exe/services.exe to terminate crashing pc (Viruses, Spyware and other Nasties)
- Filtering data from access database (Visual Basic 4 / 5 / 6)
- help connecting a form to a database.. error message (ASP.NET)
- Database connectioin error (MySQL)
- Doesn't check if username or email exits in database properly (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Threaded Backup Utility
- Next Thread: DataGridView & ClipBoard
Views: 1035 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
"crystal .net .net2005 30minutes 2008 access application arithmetic array assignment basic binary box button buttons center code combobox component connectionstring convert cpu data database databasesearch datagrid datagridview design designer dissertation dissertations dissertationthesis dll dosconsolevb.net editvb.net error excel firewall folder highlighting image images isnumericfuntioncall listview login math memory mobile ms mssqlbackend mysql navigate net opacity pan peertopeervideostreaming picturebox picturebox1 plugin port print printing printpreview problem problemwithinstallation project record reports" reuse save savedialog serial server sorting sql storedprocedure string structures studio temp textbox timer updown upload useraccounts usercontrol vb vb.net vb.netcode vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





