An unhandled exception of type 'System.InvalidOperationException' occurred in system.dll

Additional information: The key 'Cnn.ConnectionString' does not exist in the appSettings configuration section.


in questo punto:
string str = (string) settingReader.GetValue("Cnn.ConnectionString",type of(string));
(l'errore c'e' solo se non ho aggiunto il riferimento al file nel progetto altrimenti mi estrae correttamente il valore)