| | |
Database not found error
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2006
Posts: 88
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: 88
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
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account arithmetic array basic beginner bing browser button buttons center check code crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel fade file-dialog filter forms ftp generatetags google hardcopy html images input insert intel internet mobile monitor net networking objects open output panel passingparameters pdf picturebox picturebox1 port position print printing problem save searchbox searchvb.net select serial settings shutdown soap sqlserver survey table tcp temperature text textbox timer timespan toolbox transparency trim update user vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode year





