I don't understand why i get this error. Checking the MSDN documentation, it is supposed to work in .NET 3.5:
Even if i have the using System.Configuration; namespace, it still gives me the error. After doing a bit of research, i found some solutions where others had to manually add to the references of the project to System.Configuration DLL. (In the menubar at the top select Project | Add Referemce, then scroll down (in the .NET tab) to System.Configuration and double click it.).
I can do that and it will compile, the only problem i find is that the DLL i reference is associated with the framework 2.0. Will that create a problem knowing that i work on 3.5 for this project?
private SqlConnection GetConnection()
return (new SqlConnection(ConfigurationManager.ConnectionStrings["zoafab2005ConnectionString"].ConnectionString));