Search code examples
c#imagems-access-2007oledb

system.data.oledb.oledbexception (0x80004005): could not find file


Can someone help me with this error please? I can't figure it out. I have this error on Windows XP but not on Windows 7. What I did is i attached a photo and save it to the database (MS Access as my database). The photo appears on the picture box but then after that all is a mess. Im using C#.

enter image description here


Solution

  • Do check that the path point to a mdb in the App_Data folder

    Not very sure but if the database is inside the App_Data folder, simply use:

    "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|StaffingSystem_DB.mdb"