I created a Windows forms project in C# with Visual Studio 2012 that connects to a MS Access database. When I finished it, I went into project properties and changed the .NET Framework from 4.5 to 4.
When I changed the .NET Framework, the database connection is lost. I even changed it back to .NET Framework 4.5 and test connection says is OK but I can't connect to the database.
My connection string is:
string constring = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\libereas\Documents\Visual Studio 2012\Projects\kataxorisiOplon\kataxorisiOplon\bin\Debug\resources\data.mdb";
Why is this happening?
You sure it's not a version (32/64bit) issue? It's known to cause compilation issues. http://stackoverflow.com/questions/1991643/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With