SyntaxFix
Write A Post
Hire A Developer
Questions
Can't you just do the following:
var connection = System.Configuration.ConfigurationManager. ConnectionStrings["Test"].ConnectionString;
Your assembly also needs a reference to System.Configuration.dll
System.Configuration.dll