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?