If I have my connection string in the web.config like this (added line feeds for better readability):
Check the version of the reference System.Data between the empty project that works, and your project that does not work. You can use the solution explorer to check this. Are both projects using the same version?